diff --git a/tox.ini b/tox.ini index ec318a9..b763daf 100644 --- a/tox.ini +++ b/tox.ini @@ -26,6 +26,7 @@ commands = ostestr {posargs} [testenv:cover] +basepython = python3 commands = coverage erase python setup.py test --coverage --testr-args='{posargs}' \ @@ -33,27 +34,33 @@ commands = coverage report [testenv:debug] +basepython = python3 commands = oslo_debug_helper -t ./monasca_notification/tests {posargs} [testenv:pep8] +basepython = python3 commands = {[testenv:flake8]commands} {[testenv:bandit]commands} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:flake8] +basepython = python3 commands = flake8 monasca_notification flake8 tests [testenv:bandit] +basepython = python3 commands = bandit -r monasca_notification -n5 -x monasca_notification/tests [testenv:genconfig] +basepython = python3 description = Generates an example of monasca-notification configuration file commands = oslo-config-generator \ --config-file={toxinidir}/config-generator/notification.conf