summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJosh Smeaton <josh.smeaton@gmail.com>2016-08-24 21:02:35 +1000
committerGitHub <noreply@github.com>2016-08-24 21:02:35 +1000
commite59ba90c7834341f2b7a006d10ae0db85f17478d (patch)
tree594f774598fe3dda2fdde8a2c689751656bd0d2e /tox.ini
parentd5c4ea524679a787fe11c927448e44e95646096b (diff)
downloaddjango-e59ba90c7834341f2b7a006d10ae0db85f17478d.tar.gz
Added environment variable support to tox configuration
PYTHONPATH is required for passing through test modules that don't already exist within the Django tests/ directory. DISPLAY is required for testing selenium on systems that use Xvfb. HOME is where the Vagrant djangobox stores geoip data, but it could be useful for other tox commands that require access to data outside of Django.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index cdf47bb00c..74cec50a26 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,7 +20,9 @@ basepython = python3
[testenv]
usedevelop = true
-passenv = DJANGO_SETTINGS_MODULE
+passenv = DJANGO_SETTINGS_MODULE PYTHONPATH HOME DISPLAY
+setenv =
+ PYTHONDONTWRITEBYTECODE=1
deps =
py{2,27}: -rtests/requirements/py2.txt
py{3,34,35}: -rtests/requirements/py3.txt