Merge pull request #4119 from mhils/assertion-cov

Don't count overage for AssertionErrors
This commit is contained in:
Maximilian Hils 2020-07-30 11:27:11 +02:00 committed by GitHub
commit 2e4eed2d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ omit = *contrib*, *tnetstring*, *platform*, *main.py
show_missing = True
exclude_lines =
pragma: no cover
raise NotImplementedError()
raise NotImplementedError
raise AssertionError
if typing.TYPE_CHECKING:
if TYPE_CHECKING:
@overload

View File

@ -9,7 +9,7 @@ deps =
setenv = HOME = {envtmpdir}
commands =
mitmdump --version
pytest --timeout 60 --cov-report xml \
pytest --timeout 60 -v --cov-report xml \
--cov=mitmproxy --cov=pathod --cov=release \
--full-cov=mitmproxy/ --full-cov=pathod/ \
{posargs}