mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix tests
due to changes in the loading mechansim they need to be fethced now
This commit is contained in:
parent
ad9d067033
commit
42f630cff1
@ -19,6 +19,7 @@ from .templatetags import inventree_extras
|
|||||||
import part.settings
|
import part.settings
|
||||||
|
|
||||||
from common.models import InvenTreeSetting, NotificationEntry, NotificationMessage
|
from common.models import InvenTreeSetting, NotificationEntry, NotificationMessage
|
||||||
|
from common.notifications import storage
|
||||||
|
|
||||||
|
|
||||||
class TemplateTagTest(TestCase):
|
class TemplateTagTest(TestCase):
|
||||||
@ -494,6 +495,9 @@ class BaseNotificationIntegrationTest(TestCase):
|
|||||||
self.part = Part.objects.get(name='R_2K2_0805')
|
self.part = Part.objects.get(name='R_2K2_0805')
|
||||||
|
|
||||||
def _notification_run(self):
|
def _notification_run(self):
|
||||||
|
# reload notification methods
|
||||||
|
storage.collect()
|
||||||
|
|
||||||
# There should be no notification runs
|
# There should be no notification runs
|
||||||
self.assertEqual(NotificationEntry.objects.all().count(), 0)
|
self.assertEqual(NotificationEntry.objects.all().count(), 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user