Skip to content

Commit

Permalink
Time to get rid of Python3.6 😉
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels committed Nov 29, 2021
1 parent 7ebb447 commit 62ad6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plugins_t/test_sqliteregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def fetch_all():
run_async(
self.registry.notify, BootingState(), self.test_resource_attributes
)
self.assertTrue("UNIQUE constraint failed" in str(ie.exception))
self.assertTrue("unique" in str(ie.exception).lower())

run_async(
self.registry.notify,
Expand Down Expand Up @@ -250,7 +250,7 @@ def fetch_all():

with self.assertRaises(sqlite3.IntegrityError) as ie:
run_async(self.registry.insert_resource, bind_parameters)
self.assertTrue("UNIQUE constraint failed" in str(ie.exception))
self.assertTrue("unique" in str(ie.exception).lower())

self.assertListEqual([self.test_notify_result], fetch_all())

Expand Down

0 comments on commit 62ad6d5

Please sign in to comment.