Skip to content

Commit

Permalink
Add error assertion for Python (Result.single) (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude authored Jan 20, 2022
1 parent acf0ed2 commit 6b918ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/stub/iteration/test_result_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def _assert_not_exactly_one_record_error(self, error):
self.assertIsInstance(error, types.DriverError)
driver = get_driver_name()
if driver in ["python"]:
self.assertEqual("<class 'ToBeDecided'>",
error.errorType)
self.assertEqual(
"<class 'neo4j.exceptions.ResultNotSingleError'>",
error.errorType
)
elif driver in ["ruby"]:
self.assertEqual(
"Neo4j::Driver::Exceptions::NoSuchRecordException",
Expand Down

0 comments on commit 6b918ba

Please sign in to comment.