mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
Update module test to test for default config keys within loaded
This commit is contained in:
@@ -82,7 +82,7 @@ def test_load_modules(module_name):
|
||||
default_config = module.configs
|
||||
assert loaded_module.name in loaded_module.config.keys()
|
||||
defaults = {k: v.get("default") for k, v in default_config.items()}
|
||||
assert loaded_module.config[module_name] == defaults
|
||||
assert defaults.keys() in [loaded_module.config[module_name].keys()]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("module_name", ["local_storage", "generic_extractor", "html_formatter", "csv_db"])
|
||||
|
||||
Reference in New Issue
Block a user