[v2,4/9] tox: Remove '--liveserver' parameter

Message ID 20171102102844.18931-5-stephen@that.guru
State New
Headers show
Series
  • Add support for Django 1.11
Related show

Commit Message

Stephen Finucane Nov. 2, 2017, 10:28 a.m.
This parameter is no longer supported in Django 1.11 [1]. Remove this
and instead set the 'DJANGO_LIVE_TEST_SERVER_ADDRESS' environment
variable, which will do the same thing for Django < 1.11 and be ignored
by Django >= 1.11.

[1] https://docs.djangoproject.com/en/1.11/releases/1.11/#liveservertestcase-binds-to-port-zero

Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 tox.ini | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/tox.ini b/tox.ini
index fbcf9b36..3ae660b8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,14 +20,14 @@  deps =
 setenv =
     DJANGO_SETTINGS_MODULE = patchwork.settings.dev
     PYTHONDONTWRITEBYTECODE = 1
+    DJANGO_LIVE_TEST_SERVER_ADDRESS = localhost:9000-9200
 passenv =
     http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
     PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS PW_TEST_DB_HOST
     PW_TEST_DB_PORT DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
     DISPLAY HOME XAUTHORITY
 commands =
-    python -Wonce {toxinidir}/manage.py test --noinput \
-        --liveserver=localhost:9000-9200 '{posargs:patchwork}'
+    python -Wonce {toxinidir}/manage.py test --noinput '{posargs:patchwork}'
 
 [testenv:bashate]
 deps = bashate>=0.5,<0.6