Skip to content

Commit

Permalink
tests.database - fix test copying of test databases
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Aug 14, 2024
1 parent b6d0d17 commit 2e6bdea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e6bdea

Please sign in to comment.