From f88882da8e38f0ca0f2fba89742f8e1e7fcbb9bc Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Dec 2021 03:56:16 +0100 Subject: [PATCH] without targets it wont work --- 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 d899dd14a0..a6cfcba534 100644 --- a/InvenTree/common/test_notifications.py +++ b/InvenTree/common/test_notifications.py @@ -36,11 +36,13 @@ class NotificationTests(BaseNotificationIntegrationTest): def test_SingleNotificationMethod(self): """ensure the implementation requirements are tested""" - print('TESTING SingleNotificationMethod') class WrongImplementation(SingleNotificationMethod): METHOD_NAME = 'WrongImplementation1' + def get_targets(self): + return [] + def setup(self): print('running setup on WrongImplementation') return super().setup() @@ -50,11 +52,13 @@ class NotificationTests(BaseNotificationIntegrationTest): def test_BulkNotificationMethod(self): """ensure the implementation requirements are tested""" - print('TESTING BulkNotificationMethod') class WrongImplementation(BulkNotificationMethod): METHOD_NAME = 'WrongImplementation2' + def get_targets(self): + return [] + def setup(self): print('running setup on WrongImplementation') return super().setup()