Skip to content

Commit ce412e1

Browse files
committed
Fixes unit tests.
1 parent 345f8b5 commit ce412e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unitary/default_setup/telemetry/test_agent.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)