Merge "Add func3 tox environment for functional testing with Python 3."

This commit is contained in:
Jenkins 2015-08-24 13:52:50 +00:00 committed by Gerrit Code Review
commit ff08bf95e2
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 =