2016-03-22 16:03:41 +01:00
|
|
|
[tox]
|
2019-03-31 16:07:21 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
|
2022-03-10 10:31:03 +01:00
|
|
|
envlist =
|
|
|
|
py3-dj22-djfilter24-djtables211-black-coverage-pylint
|
|
|
|
py3-dj22-djfilter21-djtables1211
|
2016-03-22 16:03:41 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
2016-03-29 02:03:53 +02:00
|
|
|
whitelist_externals =
|
|
|
|
/bin/mv
|
2016-03-22 16:03:41 +01:00
|
|
|
setenv =
|
2022-03-10 10:31:09 +01:00
|
|
|
DB_ENGINE=postgresql_psycopg2
|
2018-03-23 16:39:52 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=fargo.settings
|
|
|
|
FARGO_SETTINGS_FILE=tests/settings.py
|
2020-09-01 14:23:03 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2019-12-09 15:39:54 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --random --cov-report xml --cov-report html --cov=fargo/
|
2016-03-22 16:03:41 +01:00
|
|
|
deps =
|
2019-12-10 09:07:13 +01:00
|
|
|
pytest
|
2022-03-10 10:31:09 +01:00
|
|
|
psycopg2<2.9
|
2020-04-11 21:41:48 +02:00
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
dj22: django>=2.2,<2.3
|
2021-12-16 08:58:06 +01:00
|
|
|
djfilter21: django-filter>=2.1,<2.2
|
|
|
|
djfilter24: django-filter>=2.4,<2.5
|
2022-03-10 10:31:03 +01:00
|
|
|
djtables1211: django-tables2==1.21.1
|
|
|
|
djtables211: django-tables2==2.1.1
|
2018-03-23 16:39:52 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
|
|
|
pytest-mock
|
|
|
|
pytest-django
|
|
|
|
pytest-freezegun
|
2020-04-11 21:41:48 +02:00
|
|
|
django-webtest
|
2018-03-23 16:39:52 +01:00
|
|
|
WebTest
|
2020-10-06 09:24:42 +02:00
|
|
|
mock<4
|
2021-02-15 17:48:17 +01:00
|
|
|
pre-commit
|
2016-03-22 16:03:41 +01:00
|
|
|
commands =
|
2019-03-31 16:07:21 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
|
|
|
pylint: ./pylint.sh fargo/
|
2021-02-15 17:48:17 +01:00
|
|
|
black: pre-commit run black --all-files --show-diff-on-failure
|