MCPcopy
hub / github.com/urllib3/urllib3 / test_timeout_str

Method test_timeout_str

test/test_util.py:722–726  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

720 assert timeout.read_timeout == 3
721
722 def test_timeout_str(self) -> None:
723 timeout = Timeout(connect=1, read=2, total=3)
724 assert str(timeout) == "Timeout(connect=1, read=2, total=3)"
725 timeout = Timeout(connect=1, read=None, total=3)
726 assert str(timeout) == "Timeout(connect=1, read=None, total=3)"
727
728 @patch("time.monotonic")
729 def test_timeout_elapsed(self, time_monotonic: MagicMock) -> None:

Callers

nothing calls this directly

Calls 1

TimeoutClass · 0.90

Tested by

no test coverage detected