Add zookeeper tag in setup.cfg

Add zookeeper tag in setup.cfg to enable loading the
Zookeeper driver.

Change-Id: Ia5c1bbd75a93c3ebb86ac8ece88ebc69e006440c
This commit is contained in:
Vilobh Meshram 2015-05-01 14:06:05 -07:00
parent 3dafd4e82a
commit 9d8b146d71
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ tooz.backends =
postgresql = tooz.drivers.pgsql:PostgresDriver
mysql = tooz.drivers.mysql:MySQLDriver
file = tooz.drivers.file:FileDriver
zookeeper = tooz.drivers.zookeeper:KazooDriver
[build_sphinx]
all_files = 1

View File

@ -55,6 +55,8 @@ class TestAPI(testscenarios.TestWithScenarios,
'bad_url': 'postgresql://localhost:1'}),
('mysql', {'url': os.getenv("TOOZ_TEST_MYSQL_URL"),
'bad_url': 'mysql://localhost:1'}),
('zookeeper', {'url': os.getenv("TOOZ_TEST_ZOOKEEPER_URL"),
'bad_url': 'zookeeper://localhost:1'}),
]
def assertRaisesAny(self, exc_classes, callable_obj, *args, **kwargs):