better repeat error parsing

This commit is contained in:
ari committed 2022-08-18 11:49:42 -04:00
1 parent f8f6d74d6a
commit 9184d1f7bd
8 files changed
+65 -31

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ class db_tests(TestWithDB):
configuration_key="automation",
),
]
with self.assertRaises(DBDataError):
with self.assertRaises(DBDataError) as err:
self.db.insert_automations(originals)
autos = list(self.db.list_automations(0, 10))
self.assertEqual(len(autos), 0)