From e53c809e01a3e84afb03e82c34c2a8d9be3702a3 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Tue, 22 Sep 2020 12:48:09 +0200 Subject: [PATCH] WIP: Include BadQueryError in test_name_properties.py --- tests/test_name_properties.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_name_properties.py b/tests/test_name_properties.py index 30bcac9..028592b 100644 --- a/tests/test_name_properties.py +++ b/tests/test_name_properties.py @@ -221,9 +221,8 @@ def test_query_name_property(): assert db.execute_query("FIND TestPerson WITH TestGivenName='John'", unique=True).id == rec.id - with raises(db.TransactionError) as te: + with raises(db.BadQueryError): db.execute_query("FIND John", unique=True) - assert te.value.has_error(db.EntityDoesNotExistError) teardown() -- GitLab