86 lines
1.6 KiB
INI
86 lines
1.6 KiB
INI
[tox]
|
|
envlist = py3,code-style
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
|
|
|
[testenv]
|
|
whitelist_externals =
|
|
/bin/mv
|
|
setenv =
|
|
PYTHONPATH=.
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
|
COVERAGE={tty::--cov --cov-append --cov-report xml --cov-report html --cov-context=test --cov-config=tox.ini}
|
|
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html --cov-config .coveragerc
|
|
usedevelop =
|
|
coverage: true
|
|
deps =
|
|
psycopg2-binary
|
|
django>=3.2.12,<3.3
|
|
mock<4
|
|
httmock
|
|
pytest
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-freezer
|
|
pytz
|
|
lxml
|
|
cssselect
|
|
django-webtest>1.9.3
|
|
WebTest
|
|
pyquery
|
|
responses
|
|
allowlist_externals =
|
|
./getlasso3.sh
|
|
commands =
|
|
./getlasso3.sh
|
|
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:tests}
|
|
|
|
[testenv:pylint]
|
|
basepython = python3
|
|
deps =
|
|
pylint<3
|
|
astroid<3
|
|
pylint-django
|
|
psycopg2-binary
|
|
allowlist_externals =
|
|
./getlasso3.sh
|
|
./pylint.sh
|
|
commands =
|
|
./getlasso3.sh
|
|
./pylint.sh mellon
|
|
|
|
[testenv:django-admin]
|
|
whitelist_externals = django-admin
|
|
usedevelop = True
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
PYTHONPATH=.:tests
|
|
deps =
|
|
psycopg2-binary
|
|
allowlist_externals =
|
|
./getlasso3.sh
|
|
commands =
|
|
./getlasso3.sh
|
|
django-admin {posargs:--help}
|
|
|
|
[testenv:code-style]
|
|
skip_install = true
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[pytest]
|
|
junit_family=legacy
|
|
|
|
[coverage:run]
|
|
source =
|
|
mellon
|
|
tests
|
|
branch = True
|
|
|
|
[coverage:html]
|
|
show_contexts = True
|