Files
django-dav-events/tox.ini
T
heinzel 96cf6916f4
Run tests / Execute tox to run the test suite (push) Successful in 3m29s
Added linting to tox
2026-06-11 16:31:53 +02:00

38 lines
936 B
INI

[tox]
envlist = fresh, coverage
[testenv]
setenv =
PYTHONPATH = .
deps = -r{toxinidir}/requirements.txt
selenium
commands_pre = python --version
python -m django --version
commands = python tests
[testenv:fast]
description = Only run the testsuite
[testenv:fresh]
description = Run tests in freshly created environment (with coverage)
recreate = true
deps = {[testenv]deps}
coverage
commands_pre = {[testenv]commands_pre}
python -m coverage --version
commands = python -m coverage run tests
[testenv:coverage]
description = Report test coverage
deps = {[testenv:fresh]deps}
commands = python -m coverage report --skip-covered
[testenv:lint]
description = Run pylint
deps = {[testenv]deps}
pylint-django
commands_pre = {[testenv]commands_pre}
python -m pylint --version
commands = python -m pylint --fail-under=8 --django-settings-module='tests.settings' dav_*