File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
tests/unitary/default_setup/telemetry Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ def test_user_agent_api_keys_using_test_profile(self, mock_signer):
4242 )
4343
4444 @patch ("oci.auth.signers.get_resource_principals_signer" )
45- def test_user_agent_rp (self , mock_signer ):
45+ def test_user_agent_rp (self , mock_signer , monkeypatch ):
46+ monkeypatch .delenv ("OCI_RESOURCE_PRINCIPAL_VERSION" , raising = False )
4647 importlib .reload (ads .config )
4748 importlib .reload (ads .telemetry )
4849 auth_info = ads .auth .resource_principal ()
@@ -130,8 +131,6 @@ def test_user_agent_default_singer_ociservice(
130131 mock_signer ,
131132 monkeypatch
132133 ):
133- #monkeypatch = MonkeyPatch()
134- monkeypatch .setenv ("OCI_RESOURCE_PRINCIPAL_VERSION" , "1.1" )
135134 monkeypatch .setenv ("OCI_RESOURCE_PRINCIPAL_VERSION" , "1.1" )
136135
137136 importlib .reload (ads .config )
You can’t perform that action at this time.
0 commit comments