]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
Fix copying coverage file in `cov_tmp_path` fixture
authorYurii Motov <yurii.motov.monte@gmail.com>
Thu, 25 Dec 2025 09:57:23 +0000 (10:57 +0100)
committerYurii Motov <yurii.motov.monte@gmail.com>
Thu, 25 Dec 2025 09:57:23 +0000 (10:57 +0100)
tests/conftest.py

index 98a4d2b7e621a002441265217cef4a67cf15d409..c9b6f41368a0b4f4ea2ddfbd0ecd97c94acf3382 100644 (file)
@@ -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)