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

Commit 0147d38

Browse files
committed
Fix test_oidc_with_refresh error
1 parent e221918 commit 0147d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/kube_config_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ def test_oidc_no_refresh(self):
590590
self.assertTrue(loader._load_oid_token())
591591
self.assertEqual(TEST_OIDC_TOKEN, loader.token)
592592

593-
@mock.patch('config.kube_config.OAuth2Session.refresh_token')
594-
@mock.patch('config.kube_config.ApiClient.request')
593+
@mock.patch('kubernetes.config.kube_config.OAuth2Session.refresh_token')
594+
@mock.patch('kubernetes.config.kube_config.ApiClient.request')
595595
def test_oidc_with_refresh(self, mock_ApiClient, mock_OAuth2Session):
596596
mock_response = mock.MagicMock()
597597
type(mock_response).status = mock.PropertyMock(

0 commit comments

Comments
 (0)