diff options
author | Daniel Axtens <dja@axtens.net> | 2016-09-03 17:07:13 +1000 |
---|---|---|
committer | Stephen Finucane <stephenfinucane@hotmail.com> | 2016-09-03 23:25:16 +0100 |
commit | 2c851d42fd8b3f5f8dbe1162af315c0a984cd660 (patch) | |
tree | 94af34e867543e7c4b50005054f75b7eadc410b9 | |
parent | df6dada6bed15216950fb3e8ccf2c1f30c688038 (diff) | |
download | patchwork-2c851d42fd8b3f5f8dbe1162af315c0a984cd660.tar patchwork-2c851d42fd8b3f5f8dbe1162af315c0a984cd660.tar.gz |
test: fix coverage tests
* ignore migrations
* install dev requirements, as the dev settings are used
Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
-rw-r--r-- | tox.ini | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |