senlin-tempest-plugin/tox.ini
tengqm 4ba2cec05f Fix negative tests to make py3 happy
Change-Id: I6c2e24c7ee64a94d85f4359d0a1dacf90a22d61b
2018-01-24 00:30:49 -05:00

58 lines
1.8 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[tox]
minversion = 2.0
envlist = py35,py27,pep8,api,functional
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest --regex 'senlin_tempest_plugin.tests.api.*' {posargs}
whitelist_externals = find
[testenv:api]
basepython = python3.5
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
OS_TEST_PATH=senlin_tempest_plugin/api
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest --regex 'senlin_tempest_plugin.tests.functional.*' {posargs}
[testenv:functional]
basepython = python3.5
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
OS_TEST_PATH=senlin_tempest_plugin/functional
# By default ostestr will set concurrency to ncpu, to specify something else
# use the concurrency=<n> option.
# e.g.: 'tox -efunctional -- --concurrency=4'
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest {posargs}
whitelist_externals = find
[testenv:pep8]
commands =
flake8 senlin_tempest_plugin
[testenv:venv]
commands = {posargs}
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
# Temporarily disable complaints about docstring for public module/class/method
# H106 Dont put vim configuration in source files
# H203 Use assertIs(Not)None to check for None
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401,I100
enable-extensions=H106,H203
show-source = true
exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
max-complexity=10