Skip to content

Commit 1b6ba3c

Browse files
committed
Merge branch 'ModelicaSystem_relative_path' into v4.1.0-test
2 parents 14a144f + 59b1596 commit 1b6ba3c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/test_ModelicaSystem.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,21 @@ def test_getSolutions_docker(model_firstorder):
157157
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
158158
omc = OMPython.OMCSessionZMQ(omc_process=omcp)
159159

160-
file_path = model_firstorder.as_posix()
161160
mod = OMPython.ModelicaSystem(
162161
omc_process=omc.omc_process,
163162
)
164163
mod.model(
165-
model_file=file_path,
166164
model_name="M",
165+
model_file=model_firstorder.as_posix(),
167166
)
168167

169168
_run_getSolutions(mod)
170169

171170

172171
def test_getSolutions(model_firstorder):
173-
filePath = model_firstorder.as_posix()
174172
mod = OMPython.ModelicaSystem()
175173
mod.model(
176-
model_file=filePath,
174+
model_file=model_firstorder.as_posix(),
177175
model_name="M",
178176
)
179177

0 commit comments

Comments
 (0)