2016-03-03 17:16:54 +01:00
|
|
|
[tox]
|
2016-06-09 16:35:46 +02:00
|
|
|
envlist = coverage-django17-pylint,coverage-django18
|
2016-06-08 17:48:15 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/
|
2016-03-03 17:16:54 +01:00
|
|
|
|
|
|
|
[testenv]
|
2016-03-10 14:05:24 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
2016-03-03 17:16:54 +01:00
|
|
|
setenv =
|
2016-03-10 14:05:24 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
|
|
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov=passerelle/ --cov-config .coveragerc
|
2016-03-03 17:16:54 +01:00
|
|
|
deps =
|
|
|
|
django17: django>1.7,<1.8
|
|
|
|
django18: django>=1.8,<1.9
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
pytest
|
2016-04-06 18:39:39 +02:00
|
|
|
pytest-capturelog
|
2016-03-03 17:16:54 +01:00
|
|
|
WebTest
|
|
|
|
mock
|
2016-04-06 18:39:39 +02:00
|
|
|
httmock
|
2016-05-09 17:18:31 +02:00
|
|
|
python-dateutil
|
2016-06-09 16:35:46 +02:00
|
|
|
pylint
|
|
|
|
pylint-django
|
2016-07-13 22:22:50 +02:00
|
|
|
django-webtest
|
2016-03-10 09:41:29 +01:00
|
|
|
commands =
|
2016-03-10 15:29:13 +01:00
|
|
|
./getmagic.sh
|
2016-03-10 14:08:18 +01:00
|
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
2016-06-09 16:35:46 +02:00
|
|
|
pylint: ./pylint.sh passerelle/
|