File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
from mock import patch
18
18
19
- from kubernetes .client import Configuration
19
+ from kubernetes .client import ConfigurationObject
20
20
from kubernetes .client .rest import RESTClientObject
21
21
22
22
@@ -25,12 +25,12 @@ class RestTest(unittest.TestCase):
25
25
def test_poolmanager (self ):
26
26
'Test that a poolmanager is created for rest client'
27
27
with patch .object (urllib3 , 'PoolManager' ) as pool :
28
- RESTClientObject (config = Configuration ())
28
+ RESTClientObject (config = ConfigurationObject ())
29
29
pool .assert_called_once ()
30
30
31
31
def test_proxy (self ):
32
32
'Test that proxy is created when the config especifies it'
33
- config = Configuration ()
33
+ config = ConfigurationObject ()
34
34
config .http_proxy_url = 'http://proxy.example.com'
35
35
36
36
with patch .object (urllib3 , 'proxy_from_url' ) as proxy :
You can’t perform that action at this time.
0 commit comments