File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -34,22 +34,6 @@ def _mock_users_me(self, mock_get):
3434 mock_resp .raise_for_status .return_value = None
3535 mock_get .return_value = mock_resp
3636
37- def test_authenticate_requires_env_config (self ):
38- cases = [
39- ("API_HOST" ,),
40- ("API_PORT" ,),
41- ("API_VERSION" ,),
42- ("API_SECURE" ,),
43- ]
44- for (missing_key ,) in cases :
45- with self .subTest (missing_key = missing_key ):
46- env = self ._base_env ()
47- env .pop (missing_key )
48- env ["OIDC_ACCESS_TOKEN" ] = OIDC_ACCESS_TOKEN
49- with mock .patch .dict ("os.environ" , env , clear = True ):
50- with self .assertRaises (ValidationError ):
51- APIClient .authenticate ()
52-
5337 def test_authenticate_requires_auth (self ):
5438 env = self ._base_env ()
5539 with mock .patch .dict ("os.environ" , env , clear = True ):
@@ -88,5 +72,3 @@ def test_my_account_id_fetches_and_caches(self, mock_get):
8872 self .assertEqual (mock_get .call_args [1 ]["headers" ]["Authorization" ], f"Bearer { OIDC_ACCESS_TOKEN } " )
8973 self .assertEqual (mock_get .call_args [1 ]["timeout" ], 30 )
9074 self .assertEqual (os .environ .get ("ACCOUNT_ID" ), ME_ACCOUNT_ID )
91-
92-
You can’t perform that action at this time.
0 commit comments