From 2d276cb9c47844ce035d0ac70bbce9862588ea55 Mon Sep 17 00:00:00 2001 From: erinhmclark Date: Tue, 25 Feb 2025 14:08:14 +0000 Subject: [PATCH] Fix tmp test file. --- tests/storages/test_local_storage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/storages/test_local_storage.py b/tests/storages/test_local_storage.py index 85f97c6..7617867 100644 --- a/tests/storages/test_local_storage.py +++ b/tests/storages/test_local_storage.py @@ -9,11 +9,12 @@ from auto_archiver.modules.local_storage import LocalStorage @pytest.fixture -def local_storage(setup_module) -> LocalStorage: +def local_storage(setup_module, tmp_path) -> LocalStorage: + save_to = tmp_path / "local_archive" configs: dict = { "path_generator": "flat", "filename_generator": "static", - "save_to": "./local_archive", + "save_to": str(save_to), "save_absolute": False, } return setup_module("local_storage", configs)