Adding debug tox testenv for bandit

Allows a user to run tests in debug mode for bandit, which can be very
helpful. This requires oslotest as a dependency, which has been added
as a test requirement.

Change-Id: I1614ebf2afff87a1e9b6d66e0abaa7b203234afc
This commit is contained in:
Christopher J Schaefer 2016-03-18 12:57:44 -05:00
parent fc64a61324
commit e44656cc0c
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ python-subunit>=0.0.18 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
oslotest>=1.10.0 # Apache-2.0
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD
oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0

View File

@ -16,6 +16,9 @@ commands = python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage erase
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:debug]
commands = oslo_debug_helper -t tests {posargs}
[testenv:linters]
usedevelop = False
deps = {[testenv:pep8]deps}