Skip to content
Snippets Groups Projects
Commit 87f99bed authored by florian's avatar florian
Browse files

WIP: Update error

parent 51130751
Branches
Tags
No related merge requests found
...@@ -221,8 +221,9 @@ def test_query_name_property(): ...@@ -221,8 +221,9 @@ def test_query_name_property():
assert db.execute_query("FIND TestPerson WITH TestGivenName='John'", assert db.execute_query("FIND TestPerson WITH TestGivenName='John'",
unique=True).id == rec.id unique=True).id == rec.id
with raises(db.EntityDoesNotExistError): with raises(db.TransactionError) as te:
assert db.execute_query("FIND John", unique=True) db.execute_query("FIND John", unique=True)
assert te.value.has_error(db.EntityDoesNotExistError)
teardown() teardown()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment