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

WIP: Include BadQueryError in test_name_properties.py

parent 1c93d747
No related branches found
No related tags found
No related merge requests found
...@@ -221,9 +221,8 @@ def test_query_name_property(): ...@@ -221,9 +221,8 @@ 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.TransactionError) as te: with raises(db.BadQueryError):
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