2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

Remove settings mods

This commit is contained in:
Matthias Mair 2022-02-13 06:22:15 +01:00 committed by GitHub
parent 54f6c5b34f
commit c6da462229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,23 +53,6 @@ class SettingsTest(TestCase):
""" """
settings_dict = InvenTreeSetting.SETTINGS 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(): for key in settings_dict.keys():
@ -93,22 +76,6 @@ class SettingsTest(TestCase):
Populate the settings with default values 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(): for key in InvenTreeSetting.SETTINGS.keys():
value = InvenTreeSetting.get_setting_default(key) value = InvenTreeSetting.get_setting_default(key)