File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/unitary/default_setup/auth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ def test_get_signer_with_api_keys(
8080 mock_rp_signer .assert_called_once ()
8181
8282 @mock .patch ("oci.auth.signers.get_resource_principals_signer" )
83+ @mock .patch .dict (os .environ , {"OCI_RESOURCE_PRINCIPAL_VERSION" : "2.2" })
8384 def test_resource_principal (self , mock_rp_signer ):
84- os .environ ["OCI_RESOURCE_PRINCIPAL_VERSION" ] = "2.2"
8585 resource_principal ()
8686 mock_rp_signer .assert_called_once ()
8787
@@ -264,11 +264,11 @@ def test_api_key_create_signer(
264264 assert "test" in signer ["client_kwargs" ]
265265
266266 @mock .patch ("oci.auth.signers.get_resource_principals_signer" )
267+ @mock .patch .dict (os .environ , {"OCI_RESOURCE_PRINCIPAL_VERSION" : "2.2" })
267268 def test_resource_principal_create_signer (self , mock_rp_signer ):
268269 """
269270 Testing resource principal setup with set_auth() and getting it with default_signer()
270271 """
271- os .environ ["OCI_RESOURCE_PRINCIPAL_VERSION" ] = "2.2"
272272 set_auth (AuthType .RESOURCE_PRINCIPAL )
273273 signer = default_signer (client_kwargs = {"test" : "test" })
274274 assert "additional_user_agent" in signer ["config" ]
You can’t perform that action at this time.
0 commit comments