mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:53:52 +01:00
Merge pull request #1673 from matrix-org/rav/fix_tox_tests
Fix unittests under tox
This commit is contained in:
commit
5a2c33c12e
1 changed files with 7 additions and 0 deletions
7
tox.ini
7
tox.ini
|
@ -8,8 +8,15 @@ deps =
|
||||||
mock
|
mock
|
||||||
python-subunit
|
python-subunit
|
||||||
junitxml
|
junitxml
|
||||||
|
|
||||||
|
# needed by some of the tests
|
||||||
|
lxml
|
||||||
|
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONDONTWRITEBYTECODE = no_byte_code
|
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 =
|
commands =
|
||||||
/bin/sh -c "find {toxinidir} -name '*.pyc' -delete ; coverage run {env:COVERAGE_OPTS:} --source={toxinidir}/synapse \
|
/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:}"
|
{envbindir}/trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}"
|
||||||
|
|
Loading…
Reference in a new issue