2016-02-12 19:42:48 +01:00
|
|
|
[tox]
|
2020-01-24 14:51:31 +01:00
|
|
|
envlist = coverage-py2-dj111-{pg,sqlite},coverage-py3-dj{111,22}-{pg,sqlite}
|
2016-04-11 19:12:21 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
2016-02-12 19:42:48 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
whitelist_externals =
|
|
|
|
/bin/mv
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
|
|
PYTHONPATH=.
|
|
|
|
sqlite: DB_ENGINE=sqlite3
|
|
|
|
pg: DB_ENGINE=postgresql_psycopg2
|
2019-03-02 14:42:48 +01:00
|
|
|
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html
|
2016-02-12 19:42:48 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: true
|
|
|
|
deps =
|
2019-09-22 08:32:10 +02:00
|
|
|
dj111: django>=1.11,<1.12
|
|
|
|
dj22: django>=2.2,<2.3
|
2016-02-12 19:42:48 +01:00
|
|
|
pg: psycopg2
|
2018-03-27 08:59:04 +02:00
|
|
|
mock
|
2016-02-12 19:42:48 +01:00
|
|
|
httmock
|
2019-10-01 23:59:00 +02:00
|
|
|
pytest
|
2016-02-12 19:42:48 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
|
|
|
pytest-mock
|
|
|
|
pytest-django
|
2019-06-07 21:46:07 +02:00
|
|
|
pytest-freezegun
|
|
|
|
pytest-localserver
|
2016-02-26 13:30:24 +01:00
|
|
|
pytz
|
2016-02-12 19:42:48 +01:00
|
|
|
lxml
|
|
|
|
cssselect
|
2019-09-22 10:19:42 +02:00
|
|
|
dj111: django-webtest<1.9.3
|
|
|
|
dj22: django-webtest>1.9.3
|
2016-02-12 19:42:48 +01:00
|
|
|
WebTest
|
|
|
|
pyquery
|
|
|
|
commands =
|
2018-03-27 08:59:04 +02:00
|
|
|
py2: ./getlasso.sh
|
|
|
|
py3: ./getlasso3.sh
|
2019-03-02 14:42:48 +01:00
|
|
|
py.test -o junit_suite_name={envname} --junit-xml=junit-{envname}.xml --random {env:COVERAGE:} {posargs:tests}
|
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
pylint<1.8
|
|
|
|
pylint-django<0.8.1
|
|
|
|
commands =
|
|
|
|
pylint: ./pylint.sh mellon
|
2019-12-03 19:18:27 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
junit_family=legacy
|