Delete python bytecode before every test run.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: I668c1baac23b29750fa19ccb0a4302504399dd75
This commit is contained in:
hparekh 2015-12-08 14:16:03 +09:00
parent 87a74ece9d
commit 820f9f4b10
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
commands =
find . -type f -name "*.pyc" -delete
/bin/bash run_tests.sh -N --no-pep8 {posargs}
whitelist_externals = find
[testenv:py27]
setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.test.settings