MCPcopy
hub / github.com/urllib3/urllib3 / test_exhausted

Method test_exhausted

test/test_retry.py:276–279  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

274 assert retry.is_retry("POST", status_code=500)
275
276 def test_exhausted(self) -> None:
277 assert not Retry(0).is_exhausted()
278 assert Retry(-1).is_exhausted()
279 assert Retry(1).increment(method="GET").total == 0
280
281 @pytest.mark.parametrize("total", [-1, 0])
282 def test_disabled(self, total: int) -> None:

Callers

nothing calls this directly

Calls 3

RetryClass · 0.90
is_exhaustedMethod · 0.80
incrementMethod · 0.80

Tested by

no test coverage detected