ec2: Change FormatMappingTestCase to NoDBTestCase

The test doesn't hit the database at all so make it
a NoDBTestCase.

As far as I can tell this is the last ec2 API unit test
class that isn't a trivial convert to NoDBTestCase, all
the rest require some mocking of the objects or DB API
layers to convert them to NoDBTestCase, which I plan to
work on in later patches.

Change-Id: I682a377d769312e8f37f874aa4548665b3b52ed3
This commit is contained in:
Matt Riedemann 2014-12-17 10:26:29 -08:00
parent f38e687455
commit b06d665cf7
1 changed files with 1 additions and 1 deletions

View File

@ -3208,7 +3208,7 @@ class CloudTestCaseNeutronProxy(test.NoDBTestCase):
self.assertTrue(delete(self.context, 'testgrp'))
class FormatMappingTestCase(test.TestCase):
class FormatMappingTestCase(test.NoDBTestCase):
def test_format_mapping(self):
properties = {'block_device_mapping':