From c6da4622295a18c9d15dc87fadfb753fb67a9247 Mon Sep 17 00:00:00 2001 From: Matthias Mair <66015116+matmair@users.noreply.github.com> Date: Sun, 13 Feb 2022 06:22:15 +0100 Subject: [PATCH] Remove settings mods --- InvenTree/common/tests.py | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/InvenTree/common/tests.py b/InvenTree/common/tests.py index 771f4c3b0a..17b9a5b3ba 100644 --- a/InvenTree/common/tests.py +++ b/InvenTree/common/tests.py @@ -53,23 +53,6 @@ class SettingsTest(TestCase): """ settings_dict = InvenTreeSetting.SETTINGS - # Add wrong setting - settings_dict.update({ - 'WRONG_SETTING_NAME': { - 'name': None, - 'validator': bool, - }, - 'WRONG_SETTING_DESC': { - 'name': 'Wrong', - 'description': None, - 'validator': bool, - }, - 'wrong_SETTING_UPPER': { - 'name': 'Wrong', - 'description': 'Wrong', - 'validator': bool, - } - }) for key in settings_dict.keys(): @@ -91,23 +74,7 @@ class SettingsTest(TestCase): def test_defaults(self): """ Populate the settings with default values - """ - - # Add wrong settings - InvenTreeSetting.SETTINGS.update({ - 'WRONG_BOOL_EMPTY': { - 'name': 'Barcode Support', - 'description': 'Enable barcode scanner support', - 'default': '', - 'validator': bool, - }, - 'WRONG_BOOL_DEFAULT': { - 'name': 'Barcode Support', - 'description': 'Enable barcode scanner support', - 'default': 12, - 'validator': bool, - } - }) + """ for key in InvenTreeSetting.SETTINGS.keys():