This commit is contained in:
Matthias 2022-04-05 01:58:28 +02:00
parent 5f4c8b3a3e
commit 347be2aa3a
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -19,7 +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 from common.notifications import storage, UIMessageNotification
class TemplateTagTest(TestCase): class TemplateTagTest(TestCase):
@ -524,7 +524,7 @@ class PartNotificationTest(BaseNotificationIntegrationTest):
""" Integration test for part notifications """ """ Integration test for part notifications """
def test_notification(self): def test_notification(self):
self._notification_run() self._notification_run(UIMessageNotification)
# There should be 1 notification message right now # There should be 1 notification message right now
self.assertEqual(NotificationMessage.objects.all().count(), 1) self.assertEqual(NotificationMessage.objects.all().count(), 1)