2016-02-12 19:42:48 +01:00
|
|
|
[tox]
|
2021-08-02 17:07:45 +02:00
|
|
|
envlist = code-style,py3-django22-coverage
|
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=.
|
2020-09-01 14:22:34 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2021-08-02 17:07:45 +02:00
|
|
|
DB_ENGINE=postgresql_psycopg2
|
2022-01-11 16:03:08 +01:00
|
|
|
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc
|
2016-02-12 19:42:48 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: true
|
|
|
|
deps =
|
2021-08-02 17:07:45 +02:00
|
|
|
django22: django>=2.2,<2.3
|
|
|
|
psycopg2<2.9
|
2020-10-06 09:27:40 +02:00
|
|
|
mock<4
|
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
|
2021-08-02 17:07:45 +02:00
|
|
|
django-webtest>1.9.3
|
2016-02-12 19:42:48 +01:00
|
|
|
WebTest
|
|
|
|
pyquery
|
|
|
|
commands =
|
2021-08-02 17:07:45 +02:00
|
|
|
./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]
|
2021-03-05 14:54:42 +01:00
|
|
|
basepython = python3
|
2019-03-02 14:42:48 +01:00
|
|
|
deps =
|
2021-03-05 14:54:42 +01:00
|
|
|
pylint
|
|
|
|
pylint-django
|
2019-03-02 14:42:48 +01:00
|
|
|
commands =
|
2021-03-05 14:54:42 +01:00
|
|
|
./getlasso3.sh
|
|
|
|
./pylint.sh mellon
|
2019-12-03 19:18:27 +01:00
|
|
|
|
2020-04-24 12:49:53 +02:00
|
|
|
[testenv:django-admin]
|
|
|
|
whitelist_externals = django-admin
|
|
|
|
usedevelop = True
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
|
|
PYTHONPATH=.:tests
|
|
|
|
deps =
|
|
|
|
psycopg2-binary
|
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
|
|
|
django-admin {posargs:--help}
|
|
|
|
|
2021-03-02 14:51:33 +01:00
|
|
|
[testenv:code-style]
|
|
|
|
skip_install = true
|
|
|
|
deps =
|
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
pre-commit run --all-files --show-diff-on-failure
|
2020-04-24 12:49:53 +02:00
|
|
|
|
2019-12-03 19:18:27 +01:00
|
|
|
[pytest]
|
|
|
|
junit_family=legacy
|