Merge pull request #16746 from edx/pwnage101/fix-paver-tests-django-1.11-take2
Add flags to tox.ini so paver tests can run
This commit is contained in:
21
tox.ini
21
tox.ini
@@ -1,7 +1,28 @@
|
||||
[tox]
|
||||
envlist = py27-django{18,19,110,111}
|
||||
|
||||
# This is needed to prevent the lms, cms, and openedx packages inside the "Open
|
||||
# edX" package (defined in setup.py) from getting installed into site-packages
|
||||
# where they can get imported, which is bad because those won't even contain
|
||||
# most of the source code since we don't explicitly add anything to the source
|
||||
# distribution.
|
||||
skipsdist=True
|
||||
|
||||
# The default toxworkdir is in the source tree (as ".tox/"), but `django-admin
|
||||
# compilemessages` unconditionally walks the entire directory tree under the
|
||||
# source root and cannot handle encountering the toxworkdir. So, we un-break
|
||||
# compilemessages by moving the toxworkdir to the home directory.
|
||||
toxworkdir={homedir}/edxapp_toxenv
|
||||
|
||||
[testenv]
|
||||
# This ensures "-e ." is installed, so that a link back to the top-level
|
||||
# edx-platform source directory is installed in site-packages, making
|
||||
# edx-platform source code importable from python subprocesses. Child
|
||||
# processes running python code do not import from the current working
|
||||
# directory without hacking sys.path, but they will inherit the tox virtualenv
|
||||
# and look in site-packages.
|
||||
usedevelop=True
|
||||
|
||||
setenv =
|
||||
PYTHONHASHSEED = 0
|
||||
passenv =
|
||||
|
||||
Reference in New Issue
Block a user