Skip to content

Commit cbb43e5

Browse files
committed
[test_ModelicaSystem] simplify test_customBuildDirectory
1 parent b0d202a commit cbb43e5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_ModelicaSystem.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
131131

132132
@skip_on_windows
133133
@skip_python_older_312
134-
def test_getSolutions_docker(model_firstorder_content):
134+
def test_getSolutions_docker(model_firstorder):
135135
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
136136
omc = OMPython.OMCSessionZMQ(omc_process=omcp)
137137

138-
modelpath = omc.omcpath_tempdir() / 'M.mo'
139-
modelpath.write_text(model_firstorder_content)
140-
141-
file_path = pathlib.Path(modelpath)
138+
file_path = model_firstorder.as_posix()
142139
mod = OMPython.ModelicaSystem(
143140
fileName=file_path,
144141
modelName="M",

0 commit comments

Comments
 (0)