From: Daniel Axtens Date: Sat, 3 Sep 2016 07:07:13 +0000 (+1000) Subject: test: fix coverage tests X-Git-Tag: v2.0.0-rc1~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c851d42fd8b3f5f8dbe1162af315c0a984cd660;p=thirdparty%2Fpatchwork.git test: fix coverage tests * ignore migrations * install dev requirements, as the dev settings are used Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- diff --git a/tox.ini b/tox.ini index c2edd975..aa214a05 100644 --- a/tox.ini +++ b/tox.ini @@ -44,11 +44,11 @@ commands = {posargs} basepython = python2.7 deps = coverage - -r{toxinidir}/requirements-prod.txt + -r{toxinidir}/requirements-dev.txt setenv = DJANGO_SETTINGS_MODULE = patchwork.settings.dev commands = coverage erase - coverage run --omit=*tox*,patchwork/tests/*.py,manage.py --branch \ - {toxinidir}/manage.py test --noinput patchwork + coverage run --omit=*tox*,patchwork/tests/*.py,manage.py,patchwork/migrations/*.py \ + --branch {toxinidir}/manage.py test --noinput patchwork coverage report -m