Override opportunistic database tests to PyMySQL

Set the OS_TEST_DBAPI_ADMIN_CONNECTION override variable so that
oslo.db opportunistic detection will know to use PyMySQL until
I12b32dc097a121bd43991bc38dd4d289b65e86c1 makes it the default
behavior.

Change-Id: I1b27cbdc0612ac63501e2f132bab1c065fe9a3ba
Co-Authored-By: Victor Sergeyev <vsergeyev@mirantis.com>
This commit is contained in:
Jeremy Stanley 2015-06-18 19:06:01 +00:00
parent b2e7a05ec3
commit 1548d460b8

View File

@ -5,6 +5,7 @@ envlist = py27,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql+pymysql://openstack_citest:openstack_citest@localhost/;postgresql://openstack_citest:openstack_citest@localhost/postgres;sqlite://
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt