From 2e6bdeaf99635b2330f00b36dd97bb2cb494e79d Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Wed, 14 Aug 2024 10:06:34 +0200 Subject: [PATCH] tests.database - fix test copying of test databases --- tests/test_database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_database.py b/tests/test_database.py index e87bc48..cf0a2f5 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -36,7 +36,7 @@ def database_path(temp_folder: Path) -> Path: @pytest.fixture(scope="session") def test_databases(test_folder: Path, temp_folder: Path) -> list[Path]: - files: list[Path] = [f for f in test_folder.iterdir() if f.is_file() and f.suffix == ".db"] + files: list[Path] = [f for f in test_folder.joinpath("databases").iterdir() if f.is_file() and f.suffix == ".db"] files_copy: list[Path] = [temp_folder / f"test database {f.name}" for f in files] for src, dst in zip(files, files_copy): copy2(src, dst)