diff mbox

[1/8] test: fix coverage tests

Message ID 1472886440-29204-2-git-send-email-dja@axtens.net
State Accepted
Headers show

Commit Message

Daniel Axtens Sept. 3, 2016, 7:07 a.m. UTC
* ignore migrations
 * install dev requirements, as the dev settings are used

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 tox.ini | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Stephen Finucane Sept. 3, 2016, 8:16 p.m. UTC | #1
On 03 Sep 17:07, Daniel Axtens wrote:
>  * 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>
diff mbox

Patch

diff --git a/tox.ini b/tox.ini
index c2edd9753f07..aa214a05656c 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