From 8af83950945b7059995155dbd3557646e0f25037 Mon Sep 17 00:00:00 2001 From: kgriffs Date: Tue, 5 Aug 2014 10:33:53 -0500 Subject: [PATCH] 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 212eb0d57..375f0e2ab 100644 --- a/tox.ini +++ b/tox.ini @@ -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