Skip to content

Commit 8d5df60

Browse files
committed
??? fix docker
1 parent 446bfde commit 8d5df60

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

tests/test_ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
152152

153153
@skip_on_windows
154154
@skip_python_older_312
155-
def test_getSolutions_docker(model_firstorder_content):
155+
def test_getSolutions_docker(model_firstorder):
156156
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
157157
omc = OMPython.OMCSessionZMQ(omc_process=omcp)
158158

159-
modelpath = omc.omcpath_tempdir() / 'M.mo'
160-
modelpath.write_text(model_firstorder_content)
159+
# modelpath = omc.omcpath_tempdir() / 'M.mo'
160+
# modelpath.write_text(model_firstorder_content)
161161

162-
file_path = pathlib.Path(modelpath)
162+
file_path = model_firstorder.as_posix()
163163
mod = OMPython.ModelicaSystem(
164164
omc_process=omc.omc_process,
165165
)

tests/test_ModelicaSystemDoE.py

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

7778
doe_mod = OMPython.ModelicaSystemDoE(
78-
fileName=modelpath.as_posix(),
79+
fileName=model_doe.as_posix(),
7980
modelName="M",
8081
parameters=param_doe,
8182
omc_process=omcp,

0 commit comments

Comments
 (0)