File tree Expand file tree Collapse file tree
packages/google-auth/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,22 +103,22 @@ def test_get_agent_identity_certificate_path_prefix_false_positive(
103103 base_dir = str (tmpdir )
104104 well_known_dir = os .path .join (base_dir , "workload-spiffe-credentials" )
105105 well_known_path = os .path .join (well_known_dir , "certificates.pem" )
106-
106+
107107 monkeypatch .setattr (
108108 "google.auth._agent_identity_utils._WELL_KNOWN_CERT_PATH" ,
109109 well_known_path ,
110110 )
111-
111+
112112 fake_dir = os .path .join (base_dir , "workload-spiffe-credentials-fake" )
113113 fake_config_path = os .path .join (fake_dir , "config.json" )
114-
114+
115115 monkeypatch .setenv (
116116 environment_vars .GOOGLE_API_CERTIFICATE_CONFIG , fake_config_path
117117 )
118118 mock_get_cert .return_value = "cert_path"
119119
120120 result = _agent_identity_utils .get_agent_identity_certificate_path ()
121-
121+
122122 assert result == "cert_path"
123123 mock_get_cert .assert_called_once_with (fake_config_path , False )
124124
You can’t perform that action at this time.
0 commit comments