From 2917af971592cd2983b83fadd95307d0d649f716 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 3 Dec 2021 02:02:51 +0100 Subject: [PATCH] add marker statment to wrong implementations --- InvenTree/common/test_notifications.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/test_notifications.py b/InvenTree/common/test_notifications.py index 99a12a52a0..4785de8908 100644 --- a/InvenTree/common/test_notifications.py +++ b/InvenTree/common/test_notifications.py @@ -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()