summaryrefslogtreecommitdiffstats
path: root/contrib/python/google-auth/py3/tests/oauth2/test__client.py
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2024-08-22 10:43:37 +0300
committerrobot-piglet <[email protected]>2024-08-22 10:52:34 +0300
commit1fbd27b4e37aecbce5bc29b1084ebc08d49c44ab (patch)
treedc2e6502cd69163a7309a5a2b5ee7bc0f7b1d736 /contrib/python/google-auth/py3/tests/oauth2/test__client.py
parent09b7cd61fa6d98c03d6612f2130641e209f61a06 (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.py10
1 files changed, 5 insertions, 5 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 f9a2d3aff49..8736a4e27be 100644
--- a/contrib/python/google-auth/py3/tests/oauth2/test__client.py
+++ b/contrib/python/google-auth/py3/tests/oauth2/test__client.py
@@ -195,8 +195,8 @@ def test__token_endpoint_request_internal_failure_error():
_client._token_endpoint_request(
request, "http://example.com", {"error_description": "internal_failure"}
)
- # request should be called once and then with 3 retries
- assert request.call_count == 4
+ # request with 2 retries
+ assert request.call_count == 3
request = make_request(
{"error": "internal_failure"}, status=http_client.BAD_REQUEST
@@ -206,8 +206,8 @@ def test__token_endpoint_request_internal_failure_error():
_client._token_endpoint_request(
request, "http://example.com", {"error": "internal_failure"}
)
- # request should be called once and then with 3 retries
- assert request.call_count == 4
+ # request with 2 retries
+ assert request.call_count == 3
def test__token_endpoint_request_internal_failure_and_retry_failure_error():
@@ -626,6 +626,6 @@ def test__token_endpoint_request_no_throw_with_retry(can_retry):
)
if can_retry:
- assert mock_request.call_count == 4
+ assert mock_request.call_count == 3
else:
assert mock_request.call_count == 1