python-dracclient/tox.ini
Vieri d70c0939b8 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ic94863fc8a5907fc3874cccb87ed217bcd671252
2019-08-13 06:05:49 +00:00

34 lines
961 B
INI

[tox]
envlist = py37,py36,py27,pep8
[testenv]
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = PYTHONDONTWRITEBYTECODE=1
commands =
coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
coverage report -m --fail-under 90
[testenv:venv]
commands = {posargs}
[testenv:pep8]
basepython = python2.7
commands =
flake8 dracclient
doc8 README.rst CONTRIBUTING.rst doc/source
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = python setup.py build_sphinx
[flake8]
max-complexity=15
show-source = True