Skip to content
Snippets Groups Projects
Commit a76cf9a5 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

TST: test for confirming issue number 71

parent b71b7aa4
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!118Test to confirm (or reject) #71
Pipeline #56771 passed with warnings
...@@ -641,3 +641,21 @@ RT2: ...@@ -641,3 +641,21 @@ RT2:
</RecordType> </RecordType>
, 'bar': <RecordType name="bar"/> , 'bar': <RecordType name="bar"/>
}""" }"""
def test_setting_values():
model = parse_model_from_string("""
parameter:
datatype: INTEGER
Simulation:
role: Record
obligatory_properties:
parameter: 26
""")
assert len(model) == 2
assert str(model["parameter"])[:-1] == '<Property name="parameter" datatype="INTEGER"/>'
assert model["Simulation"].role == "Record"
assert model["Simulation"].name == "Simulation"
assert model["Simulation"].get_property("parameter").value == 26
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment