Skip to content

Commit d9f992a

Browse files
committed
[test_ModelicaSystem] cleanup
1 parent a34a8ea commit d9f992a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_ModelicaSystem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ def test_simulate_inputs(tmp_path):
363363
(0.0, 2.5),
364364
(1.0, 2.5),
365365
],
366-
"u2": None,
366+
# u2 is set due to the call to simulate() above
367+
"u2": [
368+
(0.0, 0.0),
369+
(1.0, 0.0),
370+
],
367371
}
368372
mod.simulate()
369373
y = mod.getSolutions("y")[0]
@@ -390,7 +394,7 @@ def test_simulate_inputs(tmp_path):
390394
mod.setInputs(name={"u1": [(0.0, 0.0), (0.5, 1)]})
391395
mod.simulate()
392396

393-
# Let's use both inputs, but each one with different number of of
397+
# Let's use both inputs, but each one with different number of
394398
# samples. This has an effect when generating the csv file.
395399
mod.setInputs(name={"u1": [(0.0, 0), (1.0, 1)],
396400
"u2": [(0.0, 0), (0.25, 0.5), (0.5, 1.0), (1.0, 0)]})

0 commit comments

Comments
 (0)