Skip to content
Snippets Groups Projects
Commit 7ff260df authored by florian's avatar florian
Browse files

BUG: Fix syntax

parent 558c3aa0
Branches
Tags
No related merge requests found
...@@ -178,11 +178,10 @@ def test_wrong_refid(): ...@@ -178,11 +178,10 @@ def test_wrong_refid():
value=rec2.id) value=rec2.id)
with raises(db.TransactionError): with raises(db.TransactionError):
rec3.insert() rec3.insert()
except db.TransactionError: desc = ('Reference not qualified. The value of this Reference '
desc = ('Reference not qualified. The value of this Reference ' 'Property is to be a child of its data type.')
'Property is to be a child of its data type.') err = rec3.get_property("TestP1").get_errors()[0]
err = rec3.get_property("TestP1").get_errors()[0] assert err.description == desc
assert err.description == desc
rec4 = db.Record().add_parent( rec4 = db.Record().add_parent(
name="TestRT3").add_property( name="TestRT3").add_property(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment