Merge "Add missing ddt class decorator"
This commit is contained in:
commit
596ce8f529
@ -22,6 +22,7 @@ from tests.unit import test
|
||||
SWIFT_UTILS = "rally.plugins.openstack.scenarios.swift.utils"
|
||||
|
||||
|
||||
@ddt.ddt
|
||||
class SwiftScenarioTestCase(test.ScenarioTestCase):
|
||||
|
||||
def test__list_containers(self):
|
||||
|
@ -128,6 +128,7 @@ class TestCreateKeystoneClient(test.TestCase):
|
||||
mock_discover.version_data.assert_called_once_with()
|
||||
|
||||
|
||||
@ddt.ddt
|
||||
class OSClientsTestCase(test.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
@ -649,7 +650,10 @@ class OSClientsTestCase(test.TestCase):
|
||||
self.assertNotIn("designate", self.clients.cache)
|
||||
with mock.patch.dict("sys.modules",
|
||||
{"designateclient": mock_designate}):
|
||||
client = self.clients.designate()
|
||||
if version is not None:
|
||||
client = self.clients.designate(version=version)
|
||||
else:
|
||||
client = self.clients.designate()
|
||||
self.assertEqual(fake_designate, client)
|
||||
self.service_catalog.url_for.assert_called_once_with(
|
||||
service_type="dns",
|
||||
|
Loading…
Reference in New Issue
Block a user