tox.ini: add a nowarnings target

This commit is contained in:
Benjamin Dauvergne 2018-12-03 15:41:12 +01:00
parent 977455a304
commit ed30de5b18
1 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ setenv =
rbac: DJANGO_SETTINGS_MODULE=django_rbac.test_settings
fast: FAST=--nomigrations
reusedb: REUSEDB=--reuse-db
nowarnings: WARNINGS=--disable-warnings
usedevelop =
coverage: True
nocoverage: False
@ -50,8 +51,8 @@ deps =
pytest-freezegun
commands =
./getlasso.sh
authentic: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {posargs:tests/ --random}
rbac: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {posargs:tests_rbac/}
authentic: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {env:WARNINGS:} {posargs:tests/ --random}
rbac: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {env:WARNINGS:} {posargs:tests_rbac/}
coverage: mv coverage.xml coverage-{envname}.xml
coverage-dj18-authentic-pg: mv htmlcov htmlcov-coverage-dj18-authentic-pg
coverage-dj18-rbac-pg: mv htmlcov htmlcov-coverage-dj18-rbac-pg