OLD | NEW |
(Empty) | |
| 1 [tox] |
| 2 envlist = py27 |
| 3 skipsdist = true |
| 4 |
| 5 [pytest] |
| 6 # The names of the test files here don't start with 'test_' so we need |
| 7 # to instruct pytest to load tests from all files. |
| 8 python_files = *.py |
| 9 |
| 10 [run] |
| 11 # Exclude tests from coverage. |
| 12 omit = */test/* |
| 13 |
| 14 [testenv] |
| 15 basepython=python2 |
| 16 deps = |
| 17 pytest |
| 18 pytest-cov |
| 19 mock |
| 20 jinja2 |
| 21 flake8 |
| 22 pysed |
| 23 |
| 24 setenv = |
| 25 SITESCRIPTS_CONFIG = ./.sitescripts.test |
| 26 whitelist_externals = cp |
| 27 commands = |
| 28 cp .sitescripts.example .sitescripts.test |
| 29 pysed -r sitescripts\.(reports|filterhits|testpages|crawler|urlfixer)\.web.*
'' .sitescripts.test --write |
| 30 python ensure_dependencies.py |
| 31 py.test \ |
| 32 --cov-config tox.ini --cov-report term \ |
| 33 --cov sitescripts.hg \ |
| 34 --cov sitescripts.notifications \ |
| 35 --cov sitescripts.stats \ |
| 36 sitescripts/hg/test \ |
| 37 sitescripts/notifications/test \ |
| 38 sitescripts/stats/test |
| 39 flake8 --ignore=E129,E501,E704,E711,E712,E713,E714,E731,F401,F841,F821 sites
cripts multiplexer.py multiplexer.fcgi |
OLD | NEW |