Add a "light" base test class for DB tests
This newly added class simply extends DietTestCase with support for SQL operations. Related-Blueprint: better-quotas Change-Id: I2debc6a144ee93155c8e36f06aecb9735dbf55d4
This commit is contained in:
parent
525fd81214
commit
101ff1a81f
|
@ -75,6 +75,14 @@ class SqlFixture(fixtures.Fixture):
|
|||
self.addCleanup(clear_tables)
|
||||
|
||||
|
||||
class SqlTestCaseLight(base.DietTestCase):
|
||||
"""All SQL taste, zero plugin/rpc sugar"""
|
||||
|
||||
def setUp(self):
|
||||
super(SqlTestCaseLight, self).setUp()
|
||||
self.useFixture(SqlFixture())
|
||||
|
||||
|
||||
class SqlTestCase(base.BaseTestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in New Issue