mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 13:48:28 +03:00
Fix tmp test file.
This commit is contained in:
@@ -9,11 +9,12 @@ from auto_archiver.modules.local_storage import LocalStorage
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def local_storage(setup_module) -> LocalStorage:
|
def local_storage(setup_module, tmp_path) -> LocalStorage:
|
||||||
|
save_to = tmp_path / "local_archive"
|
||||||
configs: dict = {
|
configs: dict = {
|
||||||
"path_generator": "flat",
|
"path_generator": "flat",
|
||||||
"filename_generator": "static",
|
"filename_generator": "static",
|
||||||
"save_to": "./local_archive",
|
"save_to": str(save_to),
|
||||||
"save_absolute": False,
|
"save_absolute": False,
|
||||||
}
|
}
|
||||||
return setup_module("local_storage", configs)
|
return setup_module("local_storage", configs)
|
||||||
|
|||||||
Reference in New Issue
Block a user