fix tests

due to changes in the loading mechansim they need to be fethced now
This commit is contained in:
Matthias 2022-04-05 01:10:52 +02:00
parent ad9d067033
commit 42f630cff1
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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)