Skip to content

Commit c784126

Browse files
committed
Fixed coverage in nox
1 parent a545773 commit c784126

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.coveragerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[run]
2-
source=pytest_subprocess
2+
source = pytest_subprocess
33

44
[report]
55
# Regexes for lines to exclude from consideration
@@ -20,5 +20,4 @@ exclude_lines =
2020
if 0:
2121
if __name__ == .__main__.:
2222

23-
omit = setup.py
2423
ignore_errors = True

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
13
import nox
24

35

@@ -10,7 +12,8 @@ def tests(session):
1012
"--junitxml=junit.xml",
1113
"-o",
1214
"junit_family=legacy",
13-
*session.posargs
15+
*session.posargs,
16+
env={"PYTHONPATH": str(Path(__file__).resolve().parent)}
1417
)
1518

1619

0 commit comments

Comments
 (0)