Skip to content

Commit 18dec07

Browse files
committed
[test_ModelicSystemDoE] simplify test_ModelicaSystemDoE_local
1 parent 36e4763 commit 18dec07

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_ModelicaSystemDoE.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,13 @@ def test_ModelicaSystemDoE_docker(tmp_path, model_doe, param_doe):
7171
omc = OMPython.OMCSessionZMQ(omc_process=omcp)
7272
assert omc.sendExpression("getVersion()") == "OpenModelica 1.25.0"
7373

74-
modelpath = omc.omcpath_tempdir() / 'M.mo'
75-
modelpath.write_text(model_doe.read_text())
76-
74+
modelpath = omc.omcpath_tempdir()
7775
doe_mod = OMPython.ModelicaSystemDoE(
78-
fileName=modelpath.as_posix(),
76+
fileName=model_doe.as_posix(),
7977
modelName="M",
8078
parameters=param_doe,
8179
omc_process=omcp,
82-
resultpath=modelpath.parent,
80+
resultpath=modelpath,
8381
simargs={"override": {'stopTime': 1.0}},
8482
)
8583

0 commit comments

Comments
 (0)