Skip to content

Commit d128126

Browse files
committed
[test_ModelicaSystem] fix test_setParameters & test_setSimulationOptions
1 parent d5e9773 commit d128126

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/test_ModelicaSystem.py

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

3636
def test_setParameters():
3737
omc = OMPython.OMCSessionZMQ()
38-
model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
38+
model_path_str = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels"
39+
model_path = omc.omcpath(model_path_str)
3940
mod = OMPython.ModelicaSystem()
4041
mod.model(
41-
file=model_path + "BouncingBall.mo",
42+
file=model_path / "BouncingBall.mo",
4243
name="BouncingBall",
4344
)
4445

@@ -69,10 +70,11 @@ def test_setParameters():
6970

7071
def test_setSimulationOptions():
7172
omc = OMPython.OMCSessionZMQ()
72-
model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
73+
model_path_str = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels"
74+
model_path = omc.omcpath(model_path_str)
7375
mod = OMPython.ModelicaSystem()
7476
mod.model(
75-
file=model_path + "BouncingBall.mo",
77+
file=model_path / "BouncingBall.mo",
7678
name="BouncingBall",
7779
)
7880

0 commit comments

Comments
 (0)