Add func3 tox environment for functional testing with Python 3.

It's the same as func, but runs functional tests with Python 3.
One issue was fixed in ironic_inspector.test.functional.

Change-Id: I6a081ad2ca8857018c6b531ed82182aab0ccca4d
This commit is contained in:
Dmitry Tantsur 2015-08-13 14:51:13 +02:00
parent cf58f63ab4
commit 38ee2340d9
2 changed files with 7 additions and 1 deletions

View File

@ -171,7 +171,8 @@ def mocked_server():
conf_file = os.path.join(d, 'test.conf')
db_file = os.path.join(d, 'test.db')
with open(conf_file, 'wb') as fp:
fp.write(CONF % {'db_file': db_file})
content = CONF % {'db_file': db_file}
fp.write(content.encode('utf-8'))
with mock.patch.object(utils, 'check_auth'):
with mock.patch.object(utils, 'get_client'):

View File

@ -27,6 +27,11 @@ basepython = python2.7
commands =
python -m ironic_inspector.test.functional
[testenv:func3]
basepython = python3.4
commands =
python3 -m ironic_inspector.test.functional
[testenv:genconfig]
envdir = {toxworkdir}/venv
commands =