mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Ignore clearing of invalid user config keys
This commit is contained in:
@@ -104,6 +104,5 @@ class UserConfigTest(TestCase):
|
||||
self.assertTrue('foo' not in userconfig.data['b'])
|
||||
self.assertEqual(userconfig.data['b']['bar'], 102)
|
||||
|
||||
# Clear an invalid value
|
||||
with self.assertRaises(KeyError):
|
||||
userconfig.clear('invalid')
|
||||
# Clear a non-existing value; should fail silently
|
||||
userconfig.clear('invalid')
|
||||
|
||||
Reference in New Issue
Block a user