Skip to content
Snippets Groups Projects
Verified Commit a5f78b1b authored by Timm Fitschen's avatar Timm Fitschen
Browse files

REVIEW: fix tests

parent 402a1db1
No related branches found
No related tags found
No related merge requests found
...@@ -199,14 +199,16 @@ def test_property_parameter_with_entity_and_datatype(): ...@@ -199,14 +199,16 @@ def test_property_parameter_with_entity_and_datatype():
assert concrete_property.value is None assert concrete_property.value is None
assert concrete_property.datatype == db.INTEGER assert concrete_property.datatype == db.INTEGER
concrete_property.datatype = None concrete_property.datatype = db.DOUBLE
concrete_property.value = 3.14 concrete_property.value = 3.14
with raises(ValueError): with raises(ValueError):
# cannot parse 3.14 to integer # cannot parse 3.14 to integer
concrete_property.datatype = db.INTEGER concrete_property.datatype = db.INTEGER
concrete_property.datatype = None
concrete_property.value = 3.14 # nothing should've changed after the ValueError
assert concrete_property.datatype == db.DOUBLE
assert concrete_property.value == 3.14
def test_kw_name_and_value(): def test_kw_name_and_value():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment