[PATCH v2 4/9] tox: Remove '--liveserver' parameter
Stephen Finucane
stephen at that.guru
Thu Nov 2 21:28:39 AEDT 2017
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 at that.guru>
---
tox.ini | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
--
2.13.6
More information about the Patchwork
mailing list