mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
Merge pull request #4119 from mhils/assertion-cov
Don't count overage for AssertionErrors
This commit is contained in:
commit
2e4eed2d2c
@ -17,7 +17,8 @@ omit = *contrib*, *tnetstring*, *platform*, *main.py
|
|||||||
show_missing = True
|
show_missing = True
|
||||||
exclude_lines =
|
exclude_lines =
|
||||||
pragma: no cover
|
pragma: no cover
|
||||||
raise NotImplementedError()
|
raise NotImplementedError
|
||||||
|
raise AssertionError
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@overload
|
@overload
|
||||||
|
2
tox.ini
2
tox.ini
@ -9,7 +9,7 @@ deps =
|
|||||||
setenv = HOME = {envtmpdir}
|
setenv = HOME = {envtmpdir}
|
||||||
commands =
|
commands =
|
||||||
mitmdump --version
|
mitmdump --version
|
||||||
pytest --timeout 60 --cov-report xml \
|
pytest --timeout 60 -v --cov-report xml \
|
||||||
--cov=mitmproxy --cov=pathod --cov=release \
|
--cov=mitmproxy --cov=pathod --cov=release \
|
||||||
--full-cov=mitmproxy/ --full-cov=pathod/ \
|
--full-cov=mitmproxy/ --full-cov=pathod/ \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user