From 42f630cff14fcff2be3af5fb3986dba7dc1a1837 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 5 Apr 2022 01:10:52 +0200 Subject: [PATCH] fix tests due to changes in the loading mechansim they need to be fethced now --- InvenTree/part/test_part.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/part/test_part.py b/InvenTree/part/test_part.py index e1db3a78f3..5e5c84c3ea 100644 --- a/InvenTree/part/test_part.py +++ b/InvenTree/part/test_part.py @@ -19,6 +19,7 @@ from .templatetags import inventree_extras import part.settings from common.models import InvenTreeSetting, NotificationEntry, NotificationMessage +from common.notifications import storage class TemplateTagTest(TestCase): @@ -494,6 +495,9 @@ class BaseNotificationIntegrationTest(TestCase): self.part = Part.objects.get(name='R_2K2_0805') def _notification_run(self): + # reload notification methods + storage.collect() + # There should be no notification runs self.assertEqual(NotificationEntry.objects.all().count(), 0)