Skip to content

Commit eadfb2a

Browse files
committed
Fix a test to new OpenAPI client configuration
Ref: OpenAPITools/openapi-generator#4988 Signed-off-by: Nabarun Pal <[email protected]>
1 parent 3ea8003 commit eadfb2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/kube_config_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,11 +1399,13 @@ def test_get_api_key_with_prefix_returns_token(self):
13991399

14001400
def test_auth_settings_calls_get_api_key_with_prefix(self):
14011401
expected_token = 'expected_token'
1402+
api_key = {'authorization': 'expected_token'}
14021403

14031404
def fake_get_api_key_with_prefix(identifier):
14041405
self.assertEqual('authorization', identifier)
14051406
return expected_token
1406-
config = Configuration()
1407+
1408+
config = Configuration(api_key=api_key)
14071409
config.get_api_key_with_prefix = fake_get_api_key_with_prefix
14081410
self.assertEqual(expected_token,
14091411
config.auth_settings()['BearerToken']['value'])

0 commit comments

Comments
 (0)