Skip to content

Commit 5296fc1

Browse files
committed
Fix coverage omit for testsuite by passing --cov-config=setup.cfg
1 parent 59dde19 commit 5296fc1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ envlist = py310, py311, py312, py313, py314, pypy, style
33

44
[testenv]
55
passenv = TEST_*,SMTP_TEST_*
6-
commands = py.test --cov-report term --cov-report html --cov emails {posargs}
6+
commands = py.test --cov-report term --cov-report html --cov emails --cov-config=setup.cfg {posargs}
77

88
[testenv:pypy]
99
deps =
@@ -35,21 +35,21 @@ basepython = python3.12
3535
deps =
3636
-rrequirements/tests-django.txt
3737
Django>=4.2,<4.3
38-
commands = py.test --cov-report term --cov-report html --cov emails -m django {posargs}
38+
commands = py.test --cov-report term --cov-report html --cov emails --cov-config=setup.cfg -m django {posargs}
3939

4040
[testenv:django52]
4141
basepython = python3.12
4242
deps =
4343
-rrequirements/tests-django.txt
4444
Django>=5.2,<5.3
45-
commands = py.test --cov-report term --cov-report html --cov emails -m django {posargs}
45+
commands = py.test --cov-report term --cov-report html --cov emails --cov-config=setup.cfg -m django {posargs}
4646

4747
[testenv:django60]
4848
basepython = python3.12
4949
deps =
5050
-rrequirements/tests-django.txt
5151
Django>=6.0,<6.1
52-
commands = py.test --cov-report term --cov-report html --cov emails -m django {posargs}
52+
commands = py.test --cov-report term --cov-report html --cov emails --cov-config=setup.cfg -m django {posargs}
5353

5454
[testenv:typecheck]
5555
deps = mypy

0 commit comments

Comments
 (0)