summaryrefslogtreecommitdiffstats
path: root/contrib/python/google-auth/py3/tests/oauth2/test__client.py
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2024-06-21 09:28:26 +0300
committerrobot-piglet <[email protected]>2024-06-21 09:36:40 +0300
commit0cb3f820fac6a243bcb7e4c4388700898660bfd0 (patch)
tree056f1b8bc5f72039fa422aac0af13bab0e966aa7 /contrib/python/google-auth/py3/tests/oauth2/test__client.py
parent08049311fe5c42a97e8bb47a73fb6cd143c0bdb1 (diff)
Intermediate changes
Diffstat (limited to 'contrib/python/google-auth/py3/tests/oauth2/test__client.py')
-rw-r--r--contrib/python/google-auth/py3/tests/oauth2/test__client.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/contrib/python/google-auth/py3/tests/oauth2/test__client.py b/contrib/python/google-auth/py3/tests/oauth2/test__client.py
index 444232f3967..f9a2d3aff49 100644
--- a/contrib/python/google-auth/py3/tests/oauth2/test__client.py
+++ b/contrib/python/google-auth/py3/tests/oauth2/test__client.py
@@ -24,6 +24,7 @@ import pytest # type: ignore
from google.auth import _helpers
from google.auth import crypt
from google.auth import exceptions
+from google.auth import iam
from google.auth import jwt
from google.auth import transport
from google.oauth2 import _client
@@ -319,7 +320,11 @@ def test_call_iam_generate_id_token_endpoint():
request = make_request({"token": id_token})
token, expiry = _client.call_iam_generate_id_token_endpoint(
- request, "fake_email", "fake_audience", "fake_access_token"
+ request,
+ iam._IAM_IDTOKEN_ENDPOINT,
+ "fake_email",
+ "fake_audience",
+ "fake_access_token",
)
assert (
@@ -352,7 +357,11 @@ def test_call_iam_generate_id_token_endpoint_no_id_token():
with pytest.raises(exceptions.RefreshError) as excinfo:
_client.call_iam_generate_id_token_endpoint(
- request, "fake_email", "fake_audience", "fake_access_token"
+ request,
+ iam._IAM_IDTOKEN_ENDPOINT,
+ "fake_email",
+ "fake_audience",
+ "fake_access_token",
)
assert excinfo.match("No ID token in response")