4658934d22
Add an initial unit test framework and one unit test. This way we can ask people to add unit tests when they contribute code. Change-Id: If52976e1992945a8e38af3cbad5b5f4389922d4c
33 lines
703 B
INI
33 lines
703 B
INI
[tox]
|
|
envlist = py27,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONDONTWRITEBYTECODE = 1
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.UTF-8
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TESTS_DIR=./gerritbot/tests/unit/
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = rm
|
|
commands =
|
|
rm -f .testrepository/times.dbm
|
|
ostestr {posargs}
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,*.egg
|