Fix tox/bandit tests
Change-Id: I9dc199ef0361aa4ba08b438f4eca2769a79c2a44
This commit is contained in:
parent
24ae82ad9b
commit
e9790db48d
|
@ -1,5 +1,4 @@
|
|||
gitpython==2.1.5
|
||||
grpc==0.3.post19
|
||||
grpcio==1.6.0rc1
|
||||
grpcio-tools==1.6.0rc1
|
||||
keystoneauth1==2.21.0
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -3,6 +3,7 @@ skipsdist = True
|
|||
envlist = py27, pep8, coverage, bandit
|
||||
|
||||
[testenv]
|
||||
basepython=python2.7
|
||||
deps=
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
@ -23,20 +24,14 @@ commands =
|
|||
oslo-config-generator --config-file=etc/armada/config-generator.conf
|
||||
|
||||
[testenv:pep8]
|
||||
deps=
|
||||
{[testenv]deps}
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
|
||||
[testenv:bandit]
|
||||
deps = .[bandit]
|
||||
commands =
|
||||
bandit -r armada -x armada/tests -n 5
|
||||
|
||||
[testenv:coverage]
|
||||
deps=
|
||||
{[testenv]deps}
|
||||
|
||||
commands =
|
||||
nosetests -w armada/tests/unit --cover-package=armada --with-coverage --cover-tests --exclude=.tox
|
||||
|
||||
|
|
Loading…
Reference in New Issue