From 32918348b9248df86d1c4ba2e2ee4b2175d95e2f Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 5 Apr 2022 00:55:53 +0200 Subject: [PATCH] fix docstrings --- InvenTree/common/test_notifications.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/test_notifications.py b/InvenTree/common/test_notifications.py index 3c0009fb51..a436b99da3 100644 --- a/InvenTree/common/test_notifications.py +++ b/InvenTree/common/test_notifications.py @@ -83,7 +83,10 @@ class BaseNotificationTests(BaseNotificationIntegrationTest): class BulkNotificationMethodTests(BaseNotificationIntegrationTest): def test_BulkNotificationMethod(self): - """ensure the implementation requirements are tested""" + """ + Ensure the implementation requirements are tested. + NotImplementedError needs to raise if the send_bulk() method is not set. + """ class WrongImplementation(BulkNotificationMethod): METHOD_NAME = 'WrongImplementationBulk' @@ -98,7 +101,10 @@ class BulkNotificationMethodTests(BaseNotificationIntegrationTest): class SingleNotificationMethodTests(BaseNotificationIntegrationTest): def test_SingleNotificationMethod(self): - """ensure the implementation requirements are tested""" + """ + Ensure the implementation requirements are tested. + NotImplementedError needs to raise if the send() method is not set. + """ class WrongImplementation(SingleNotificationMethod): METHOD_NAME = 'WrongImplementationSingle'