Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 10d7016

Browse files
committed
Use ConfigurationObject
1 parent a161197 commit 10d7016

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rest_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from mock import patch
1818

19-
from kubernetes.client import Configuration
19+
from kubernetes.client import ConfigurationObject
2020
from 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:

0 commit comments

Comments
 (0)