Skip to content

Commit

Permalink
Change test for model description with internal state params to expec…
Browse files Browse the repository at this point in the history
…t the output and state in opposite order.
  • Loading branch information
KristofferSkare committed Dec 19, 2024
1 parent a5c0a2a commit e35f12c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/utils/test_modelDescription_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ def test_generate_model_description_with_internal_state_params():
variables = xml_structure.findall(".//ScalarVariable")

assert xml_structure.getroot().tag == "fmiModelDescription"
assert variables[0].attrib["name"] == "state1"
assert variables[0].attrib["causality"] == "parameter"
assert variables[0][0].tag == "Real"
assert variables[0][0].attrib["start"] == "0.0"

assert variables[1].attrib["name"] == "output1"
assert variables[1].attrib["causality"] == "output"
assert variables[0].attrib["name"] == "output1"
assert variables[0].attrib["causality"] == "output"

assert variables[1].attrib["name"] == "state1"
assert variables[1].attrib["causality"] == "parameter"
assert variables[1][0].tag == "Real"
assert variables[1][0].attrib["start"] == "0.0"


def test_generate_vector_ports():
Expand Down

0 comments on commit e35f12c

Please sign in to comment.