From 234d9e49fee8345d6a455e7ec1973a94e60de3ce Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Tue, 17 Sep 2024 15:32:01 -0700 Subject: [PATCH] Fix test --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)