Skip to content

Commit 8f66219

Browse files
committed
??? fix docker
1 parent 5fc833a commit 8f66219

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

tests/test_ModelicaSystem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ def test_getSolutions_docker(model_firstorder_content):
160160

161161
file_path = pathlib.Path(modelpath)
162162
mod = OMPython.ModelicaSystem(
163-
fileName=file_path,
164-
modelName="M",
165163
omc_process=omc.omc_process,
166164
)
165+
mod.model(
166+
file=filePath,
167+
name="M",
168+
)
167169

168170
_run_getSolutions(mod)
169171

tests/test_ModelicaSystemDoE.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ 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())
74+
# modelpath = omc.omcpath_tempdir() / 'M.mo'
75+
# modelpath.write_text(model_doe.read_text())
7676

7777
doe_mod = OMPython.ModelicaSystemDoE(
78-
fileName=modelpath.as_posix(),
78+
fileName=model_doe.as_posix(),
7979
modelName="M",
8080
parameters=param_doe,
8181
omc_process=omcp,

0 commit comments

Comments
 (0)