mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for unit test
This commit is contained in:
parent
b2689b943e
commit
50d8f242bb
@ -19,7 +19,7 @@ from .templatetags import inventree_extras
|
|||||||
import part.settings
|
import part.settings
|
||||||
|
|
||||||
from InvenTree import version
|
from InvenTree import version
|
||||||
from common.models import InvenTreeSetting, NotificationEntry, NotificationMessage
|
from common.models import InvenTreeSetting, InvenTreeUserSetting, NotificationEntry, NotificationMessage
|
||||||
from common.notifications import storage, UIMessageNotification
|
from common.notifications import storage, UIMessageNotification
|
||||||
|
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ class TemplateTagTest(TestCase):
|
|||||||
|
|
||||||
def test_user_settings(self):
|
def test_user_settings(self):
|
||||||
result = inventree_extras.user_settings(self.user)
|
result = inventree_extras.user_settings(self.user)
|
||||||
self.assertEqual(len(result), 36)
|
self.assertEqual(len(result), len(InvenTreeUserSetting.SETTINGS))
|
||||||
|
|
||||||
def test_global_settings(self):
|
def test_global_settings(self):
|
||||||
result = inventree_extras.global_settings()
|
result = inventree_extras.global_settings()
|
||||||
|
Loading…
Reference in New Issue
Block a user