diff --git a/tests/conftest.py b/tests/conftest.py index 5fc5950..a1107bc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -212,15 +212,15 @@ def plugin_config(tmp_path): from comictaggerlib.main import App ns = Namespace(config=comictaggerlib.ctsettings.ComicTaggerPaths(tmp_path / "config")) + ns.config.user_config_dir.mkdir(parents=True, exist_ok=True) + ns.config.user_cache_dir.mkdir(parents=True, exist_ok=True) + ns.config.user_log_dir.mkdir(parents=True, exist_ok=True) + ns.config.user_plugin_dir.mkdir(parents=True, exist_ok=True) app = App() app.load_plugins(ns) app.register_settings(False) defaults = app.parse_settings(ns.config, "") - defaults[0].Runtime_Options__config.user_config_dir.mkdir(parents=True, exist_ok=True) - defaults[0].Runtime_Options__config.user_cache_dir.mkdir(parents=True, exist_ok=True) - defaults[0].Runtime_Options__config.user_log_dir.mkdir(parents=True, exist_ok=True) - defaults[0].Runtime_Options__config.user_plugin_dir.mkdir(parents=True, exist_ok=True) yield (defaults, app.talkers)