소스 검색

Fix unittests under tox

We now need to set PYTHONPATH when running the unit tests; update tox config to
do so.
tags/v0.18.5-rc3
Richard van der Hoff 7 년 전
부모
커밋
7dae7087d3
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      tox.ini

+ 7
- 0
tox.ini 파일 보기

@@ -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:}"


불러오는 중...
취소
저장