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