From: Yurii Motov Date: Thu, 25 Dec 2025 09:57:23 +0000 (+0100) Subject: Fix copying coverage file in `cov_tmp_path` fixture X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05af4de9af5ddeb8c57a5e05632703e7b3eddd65;p=thirdparty%2Ffastapi%2Fsqlmodel.git Fix copying coverage file in `cov_tmp_path` fixture --- diff --git a/tests/conftest.py b/tests/conftest.py index 98a4d2b7..c9b6f413 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,7 +31,7 @@ def clear_sqlmodel() -> Any: def cov_tmp_path(tmp_path: Path) -> Generator[Path, None, None]: yield tmp_path for coverage_path in tmp_path.glob(".coverage*"): - coverage_destiny_path = top_level_path / coverage_path.name + coverage_destiny_path = top_level_path / "coverage" / coverage_path.name shutil.copy(coverage_path, coverage_destiny_path)