mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix test
This commit is contained in:
parent
5f4c8b3a3e
commit
347be2aa3a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user