mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
test wrong setting defaults
This commit is contained in:
parent
42b4466897
commit
1f59373c70
@ -74,6 +74,22 @@ class SettingsTest(TestCase):
|
||||
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():
|
||||
|
||||
value = InvenTreeSetting.get_setting_default(key)
|
||||
|
Loading…
Reference in New Issue
Block a user