mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
Ignore non-object settings scrub inputs (#1645)
This commit is contained in:
@@ -59,3 +59,8 @@ def test_empty_and_nonstring_secret_values_untouched():
|
||||
def test_exact_name_matches():
|
||||
out = scrub_settings({"password": "p", "token": "t", "secret": "s", "apikey": "a", "key": "k"})
|
||||
assert all(v == "" for v in out.values()), out
|
||||
|
||||
|
||||
def test_non_object_settings_return_empty_mapping():
|
||||
assert scrub_settings(["not", "settings"]) == {}
|
||||
assert scrub_settings("not settings") == {}
|
||||
|
||||
Reference in New Issue
Block a user