Skip to content

Commit f14ac74

Browse files
committed
Improve coverage
1 parent 794d6d7 commit f14ac74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import shutil
23
import textwrap
34
from pathlib import Path
45

@@ -16,8 +17,7 @@ def repo_dir(tmp_path_factory: pytest.TempPathFactory):
1617
reports = repo_dir.joinpath("reports")
1718

1819
# collect coverage data
19-
with coveragerc.open("r") as f:
20-
create_file(repo_dir, ".coveragerc", f.read(), add=False, commit=False)
20+
shutil.copy(coveragerc, repo_dir)
2121

2222
reports.mkdir(parents=True, exist_ok=True)
2323

0 commit comments

Comments
 (0)