Fix tmp test file.

This commit is contained in:
erinhmclark
2025-02-25 14:08:14 +00:00
parent 5211c5de18
commit 2d276cb9c4

View File

@@ -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)