Skip to content

Commit ba56397

Browse files
committed
fix pytest
1 parent 5a48a31 commit ba56397

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def test_setParameters():
3434
model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
3535
mod = OMPython.ModelicaSystem(model_path + "BouncingBall.mo", "BouncingBall")
3636

37-
# method 1 (test depreciated variants)
38-
mod.setParameters("e=1.234")
39-
mod.setParameters(["g=321.0"])
37+
# method 1 (as kwarg)
38+
mod.setParameters(e=1.234)
39+
mod.setParameters(g=321.0)
4040
assert mod.getParameters("e") == ["1.234"]
4141
assert mod.getParameters("g") == ["321.0"]
4242
assert mod.getParameters() == {
@@ -46,7 +46,7 @@ def test_setParameters():
4646
with pytest.raises(KeyError):
4747
mod.getParameters("thisParameterDoesNotExist")
4848

49-
# method 2 (new style)
49+
# method 2 (as **kwarg)
5050
pvals = {"e": 21.3, "g": 0.12}
5151
mod.setParameters(**pvals)
5252
assert mod.getParameters() == {

0 commit comments

Comments
 (0)