From 7e76c9957c0ad012285bb2f3274be1bfe6dd48f1 Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Mon, 15 Apr 2013 09:48:07 -0400 Subject: [PATCH] Let the storage tests cover the SQlite driver. Change-Id: Id751258e6410e7b6e9717efe336a38ec6477b19c --- marconi/tests/storage/base.py | 2 +- marconi/tests/storage/test_impl_sqlite.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/marconi/tests/storage/base.py b/marconi/tests/storage/base.py index 820bdef30..a91c17c8e 100644 --- a/marconi/tests/storage/base.py +++ b/marconi/tests/storage/base.py @@ -200,7 +200,7 @@ class ClaimControllerTest(ControllerBaseTest): tenant=self.tenant) def tearDown(self): - self.queue_controller.delete(self.queue_name) + self.queue_controller.delete(self.queue_name, tenant=self.tenant) super(ClaimControllerTest, self).tearDown() def test_claim_lifecycle(self): diff --git a/marconi/tests/storage/test_impl_sqlite.py b/marconi/tests/storage/test_impl_sqlite.py index 85665db4b..23f0fa5fb 100644 --- a/marconi/tests/storage/test_impl_sqlite.py +++ b/marconi/tests/storage/test_impl_sqlite.py @@ -26,3 +26,8 @@ class SQliteQueueTests(base.QueueControllerTest): class SQliteMessageTests(base.MessageControllerTest): driver_class = sqlite.Driver controller_class = controllers.Message + + +class SQliteClaimTests(base.ClaimControllerTest): + driver_class = sqlite.Driver + controller_class = controllers.Claim