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):
42
42
)
43
43
44
44
@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 )
46
47
importlib .reload (ads .config )
47
48
importlib .reload (ads .telemetry )
48
49
auth_info = ads .auth .resource_principal ()
@@ -130,8 +131,6 @@ def test_user_agent_default_singer_ociservice(
130
131
mock_signer ,
131
132
monkeypatch
132
133
):
133
- #monkeypatch = MonkeyPatch()
134
- monkeypatch .setenv ("OCI_RESOURCE_PRINCIPAL_VERSION" , "1.1" )
135
134
monkeypatch .setenv ("OCI_RESOURCE_PRINCIPAL_VERSION" , "1.1" )
136
135
137
136
importlib .reload (ads .config )
You can’t perform that action at this time.
0 commit comments