Skip to content
Snippets Groups Projects
Commit 7dae7087 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Fix unittests under tox

We now need to set PYTHONPATH when running the unit tests; update tox config to
do so.
parent 0b1e287e
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,15 @@ deps =
mock
python-subunit
junitxml
# needed by some of the tests
lxml
setenv =
PYTHONDONTWRITEBYTECODE = no_byte_code
# As of twisted 16.4, trial tries to import the tests as a package, which
# means it needs to be on the pythonpath.
PYTHONPATH = {toxinidir}
commands =
/bin/sh -c "find {toxinidir} -name '*.pyc' -delete ; coverage run {env:COVERAGE_OPTS:} --source={toxinidir}/synapse \
{envbindir}/trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment