File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717from mock import patch
1818
19- from kubernetes .client import Configuration
19+ from kubernetes .client import ConfigurationObject
2020from kubernetes .client .rest import RESTClientObject
2121
2222
@@ -25,12 +25,12 @@ class RestTest(unittest.TestCase):
2525 def test_poolmanager (self ):
2626 'Test that a poolmanager is created for rest client'
2727 with patch .object (urllib3 , 'PoolManager' ) as pool :
28- RESTClientObject (config = Configuration ())
28+ RESTClientObject (config = ConfigurationObject ())
2929 pool .assert_called_once ()
3030
3131 def test_proxy (self ):
3232 'Test that proxy is created when the config especifies it'
33- config = Configuration ()
33+ config = ConfigurationObject ()
3434 config .http_proxy_url = 'http://proxy.example.com'
3535
3636 with patch .object (urllib3 , 'proxy_from_url' ) as proxy :
You can’t perform that action at this time.
0 commit comments