]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
test: fix coverage tests
authorDaniel Axtens <dja@axtens.net>
Sat, 3 Sep 2016 07:07:13 +0000 (17:07 +1000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 3 Sep 2016 22:25:16 +0000 (23:25 +0100)
* 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>
tox.ini

diff --git a/tox.ini b/tox.ini
index c2edd9753f07f590c367cc64f1cdd5d2c145dc06..aa214a05656c25708deb8056e83744a94d484b2b 100644 (file)
--- 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