forked from orbit-oss/flask
fix tests failing with server name warnings
After pallets/werkzeug#1577, mismatched configured and real server names will show a warning in addition to raising 404. This caused tests that did this deliberately to fail. This patch removes the pytest fixture we were using to fail on warnings, instead using the standard `-Werror` option. This speeds up the tests by ~3x.
This commit is contained in:
parent
6369537a49
commit
dbd4520ccb
5 changed files with 37 additions and 63 deletions
4
tox.ini
4
tox.ini
|
|
@ -33,7 +33,7 @@ commands =
|
|||
pip install -q -e examples/javascript[test]
|
||||
|
||||
# pytest-cov doesn't seem to play nice with -p
|
||||
coverage run -p -m pytest --tb=short {posargs:tests examples}
|
||||
coverage run -p -m pytest --tb=short -Werror {posargs:tests examples}
|
||||
|
||||
[testenv:nightly]
|
||||
# courtesy Python nightly test, don't fail the build in CI
|
||||
|
|
@ -41,7 +41,7 @@ ignore_outcome = true
|
|||
commands =
|
||||
pip install -q -e examples/tutorial[test]
|
||||
pip install -q -e examples/javascript[test]
|
||||
coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
|
||||
coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml {posargs:tests examples}
|
||||
|
||||
[testenv:stylecheck]
|
||||
deps = pre-commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue