2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

add marker statment to wrong implementations

This commit is contained in:
Matthias
2021-12-03 02:02:51 +01:00
parent 79bab93afc
commit 2917af9715

View File

@ -27,7 +27,9 @@ class NotificationTests(BaseNotificationIntegrationTest):
"""ensure the implementation requirements are tested"""
class WrongImplementation(SingleNotificationMethod):
pass
def setup(self):
print('running setup on WrongImplementation')
return super().setup()
with self.assertRaises(NotImplementedError):
self._notification_run()
@ -36,7 +38,9 @@ class NotificationTests(BaseNotificationIntegrationTest):
"""ensure the implementation requirements are tested"""
class WrongImplementation(BulkNotificationMethod):
pass
def setup(self):
print('running setup on WrongImplementation')
return super().setup()
with self.assertRaises(NotImplementedError):
self._notification_run()