mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
@ -534,8 +534,10 @@ class NotificationUserSettingsApiTest(InvenTreeAPITestCase):
|
|||||||
|
|
||||||
def test_setting(self):
|
def test_setting(self):
|
||||||
"""Test the string name for NotificationUserSetting."""
|
"""Test the string name for NotificationUserSetting."""
|
||||||
|
|
||||||
|
NotificationUserSetting.set_setting('NOTIFICATION_METHOD_MAIL', True, change_user=self.user, user=self.user)
|
||||||
test_setting = NotificationUserSetting.get_setting_object('NOTIFICATION_METHOD_MAIL', user=self.user)
|
test_setting = NotificationUserSetting.get_setting_object('NOTIFICATION_METHOD_MAIL', user=self.user)
|
||||||
self.assertEqual(str(test_setting), 'NOTIFICATION_METHOD_MAIL (for testuser): ')
|
self.assertEqual(str(test_setting), 'NOTIFICATION_METHOD_MAIL (for testuser): True')
|
||||||
|
|
||||||
|
|
||||||
class PluginSettingsApiTest(InvenTreeAPITestCase):
|
class PluginSettingsApiTest(InvenTreeAPITestCase):
|
||||||
|
Reference in New Issue
Block a user