5f371d18d4
Add tests for most commands in PTGbot, checking that they result in the desired outcome. With this patch all track commands are tested, as well as most admin commands. Change-Id: I0a9907da6946db224a9efd2c740f275dfad0f00e
29 lines
539 B
INI
29 lines
539 B
INI
[tox]
|
|
envlist = py3,pep8,pyflakes
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
allowlist_externals =
|
|
find
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E125 and H are intentionally ignored
|
|
# W504 line break after binary operator
|
|
ignore = E125,H,W504
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|