]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Remove '--liveserver' parameter
authorStephen Finucane <stephen@that.guru>
Fri, 19 May 2017 14:54:08 +0000 (15:54 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 3 Dec 2017 20:54:32 +0000 (20:54 +0000)
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>
Tested-by: Daniel Axtens <dja@axtens.net>
tox.ini

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