test config function reloads all cached components which means if previously cached component would be reloaded, the test funcion would reload its previous definition hence not actually testing the new definition. By ignoring the component to be loaded, this ensures the new definition is not replaced by anything hence all components can be successfully validated.
Testing
➜ make tests args="test_config.py::test_load_valid_then_invalid --pdb"
CHANGELOG.md
if necessaryIssue
fixes https://github.com/crashappsec/chalk/issues/312
Description
test config function reloads all cached components which means if previously cached component would be reloaded, the test funcion would reload its previous definition hence not actually testing the new definition. By ignoring the component to be loaded, this ensures the new definition is not replaced by anything hence all components can be successfully validated.
Testing