Skip to content

Commit 6b918ba

Browse files
authored
Add error assertion for Python (Result.single) (#373)
1 parent acf0ed2 commit 6b918ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/stub/iteration/test_result_single.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ def _assert_not_exactly_one_record_error(self, error):
1515
self.assertIsInstance(error, types.DriverError)
1616
driver = get_driver_name()
1717
if driver in ["python"]:
18-
self.assertEqual("<class 'ToBeDecided'>",
19-
error.errorType)
18+
self.assertEqual(
19+
"<class 'neo4j.exceptions.ResultNotSingleError'>",
20+
error.errorType
21+
)
2022
elif driver in ["ruby"]:
2123
self.assertEqual(
2224
"Neo4j::Driver::Exceptions::NoSuchRecordException",

0 commit comments

Comments
 (0)