Make test cases in test_test.py use NoDBTest
they are not related to DB access, make them inherit from NoDBTest. Change-Id: I297c14359f1c20af03f4c9639b31987b8c9bad6e
This commit is contained in:
parent
02b7e64b29
commit
ee42f6fca0
|
@ -54,7 +54,7 @@ class IsolationTestCase(test.TestCase):
|
|||
server.start()
|
||||
|
||||
|
||||
class JsonTestCase(test.TestCase):
|
||||
class JsonTestCase(test.NoDBTestCase):
|
||||
def test_json_equal(self):
|
||||
expected = {
|
||||
"employees": [
|
||||
|
@ -149,7 +149,7 @@ class JsonTestCase(test.TestCase):
|
|||
self.fail("This should have raised a mismatch exception")
|
||||
|
||||
|
||||
class BadLogTestCase(test.TestCase):
|
||||
class BadLogTestCase(test.NoDBTestCase):
|
||||
"""Make sure a mis-formatted debug log will get caught."""
|
||||
|
||||
def test_bad_debug_log(self):
|
||||
|
@ -157,7 +157,7 @@ class BadLogTestCase(test.TestCase):
|
|||
LOG.debug, "this is a misformated %(log)s", {'nothing': 'nothing'})
|
||||
|
||||
|
||||
class MatchTypeTestCase(test.TestCase):
|
||||
class MatchTypeTestCase(test.NoDBTestCase):
|
||||
|
||||
def test_match_type_simple(self):
|
||||
matcher = test.MatchType(dict)
|
||||
|
|
Loading…
Reference in New Issue