Patch "http" section in HTTP proxy configuration test case.

Change-Id: I47608ce2849c149cd794838bd3d135772451b5b3
This commit is contained in:
Federico Ressi 2019-03-12 16:14:57 +01:00
parent 4ce797012c
commit 8e91ae2f8e

View File

@ -28,8 +28,8 @@ class HttpProxyFixtureTest(unit.TobikoUnitTest):
def setUp(self): def setUp(self):
super(HttpProxyFixtureTest, self).setUp() super(HttpProxyFixtureTest, self).setUp()
self.patch('os.environ', {}) self.patch('os.environ', {})
tempest_conf = self.patch('tobiko.config.CONF.tempest') self.patch('tobiko.config.CONF.tobiko.http',
tempest_conf.service_clients.proxy_url = None http_proxy=None, https_proxy=None, no_proxy=None)
def test_init(self): def test_init(self):
fixture = config.HttpProxyFixture() fixture = config.HttpProxyFixture()