Skip to content

Commit fe4016a

Browse files
committed
[test_ModelicaSystem] fix test_setParameters & test_setSimulationOptions
1 parent 82d7c19 commit fe4016a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_ModelicaSystem.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ def worker():
5151

5252
def test_setParameters():
5353
omc = OMPython.OMCSessionZMQ()
54-
model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
54+
model_path_str = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels"
55+
model_path = omc.omcpath(model_path_str)
5556
mod = OMPython.ModelicaSystem()
5657
mod.model(
57-
file=model_path + "BouncingBall.mo",
58+
file=model_path / "BouncingBall.mo",
5859
name="BouncingBall",
5960
)
6061

@@ -85,10 +86,11 @@ def test_setParameters():
8586

8687
def test_setSimulationOptions():
8788
omc = OMPython.OMCSessionZMQ()
88-
model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
89+
model_path_str = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels"
90+
model_path = omc.omcpath(model_path_str)
8991
mod = OMPython.ModelicaSystem()
9092
mod.model(
91-
file=model_path + "BouncingBall.mo",
93+
file=model_path / "BouncingBall.mo",
9294
name="BouncingBall",
9395
)
9496

0 commit comments

Comments
 (0)