summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-05-18 21:17:48 +0100
committerStephen Finucane <stephen@that.guru>2017-05-18 21:17:48 +0100
commit9db5cd0b9f29e0526656897793daed3c7b502b2f (patch)
tree2aa3ab41aa6b3f580ee00e0eef07181412afec27 /tox.ini
parentac4b3b87144189882611ad3d19b836247a0406bb (diff)
downloadpatchwork-9db5cd0b9f29e0526656897793daed3c7b502b2f.tar
patchwork-9db5cd0b9f29e0526656897793daed3c7b502b2f.tar.gz
tox: Turn deprecation notices into warnings
Django does an excellent job of marking what features are going to change in upcoming releases through extensive use of the 'warnings' module. Pass the '-Werror' flag to 'manage.py' in tests, ensuring that any warnings will result in exceptions instead. This should make upgrades a mostly painless process going forward. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 90f177a..1023c0d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,8 +26,8 @@ passenv =
PW_TEST_DB_PORT DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
DISPLAY HOME XAUTHORITY
commands =
- {toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \
- '{posargs:patchwork}'
+ python -Werror {toxinidir}/manage.py test --noinput \
+ --liveserver=localhost:9000-9200 '{posargs:patchwork}'
[testenv:bashate]
deps = bashate>=0.5,<0.6