Remove FakeProvider getClient monkey-patch

This is actually not needed.

Change-Id: Id40d7b1d9e6e70053d22c7e8c868665922928eab
This commit is contained in:
Tristan Cacqueray 2017-06-17 13:23:27 +00:00
parent 6dbae3e680
commit 99e20251c1
1 changed files with 0 additions and 11 deletions

View File

@ -190,17 +190,6 @@ class BaseTestCase(testtools.TestCase):
self.setUpFakes()
def setUpFakes(self):
log = logging.getLogger("nodepool.test")
log.debug("set up fakes")
fake_client = fakeprovider.FakeOpenStackCloud()
def get_fake_client(*args, **kwargs):
return fake_client
self.useFixture(fixtures.MonkeyPatch(
'nodepool.driver.openstack.provider.OpenStackProvider.'
'_getClient',
get_fake_client))
self.useFixture(fixtures.MonkeyPatch(
'nodepool.launcher._get_one_cloud',
fakeprovider.fake_get_one_cloud))