Enable MongoDB tests on py27

This patch sets the ZAQAR_TEST_MONGODB env variable just for
the py27 test. We would enable it for all envs, but only the
py27 gate has a recent enough version of MongoDB available.

We considered automatically detecting the mongo version in
code and skipping tests if the version was incompatible, but
that proved to be problematic since stevedore masks
exceptions that get raised by a driver class' __init__
method.

Change-Id: Ib751048a9ed1d7bb33ef80a5ed9e9cf7bdf71d57
This commit is contained in:
kgriffs 2014-08-05 10:33:53 -05:00
parent c8cc524245
commit 8af8395094

View File

@ -16,6 +16,9 @@ deps = -r{toxinidir}/requirements.txt
#commands = nosetests {posargs}
commands = python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}'
[testenv:py27]
setenv = ZAQAR_TEST_MONGODB=1
[testenv:py33]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements-py3.txt