
Some of tests use different method of assertTrue(isinstance(A, B)) or assertEqual(type(A), B). The correct way is to use assertIsInstance(A, B) provided by test tools. And add some relevant hacking files. Change-Id: I4b154a2e2898e316c61decf856547d57b1dcc2f8
25 lines
590 B
INI
25 lines
590 B
INI
[tox]
|
|
envlist = pep8,py27
|
|
skipsdist = True
|
|
minversion = 2.3.2
|
|
|
|
[testenv:py27]
|
|
deps = zuul
|
|
commands =
|
|
zuul-cloner --cache-dir /opt/git git://git.openstack.org \
|
|
openstack/nova openstack/cinder \
|
|
openstack/neutron openstack/glance_store
|
|
./run_tests.sh -wj
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
deps = hacking!=0.13.0,<0.14,>=0.12.0
|
|
commands = flake8 {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
show-source = True
|
|
enable-extensions = H106,H203
|
|
ignore = E123,E125,H404,H405
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,openstack |