MCPcopy
hub / github.com/urllib3/urllib3 / _make_time_pass

Method _make_time_pass

test/test_util.py:643–650  ·  view source on GitHub ↗

Make some time pass for the timeout object

(
        self, seconds: int, timeout: Timeout, time_mock: Mock
    )

Source from the content-addressed store, hash-verified

641 assert len(w) == 1
642
643 def _make_time_pass(
644 self, seconds: int, timeout: Timeout, time_mock: Mock
645 ) -> Timeout:
646 """Make some time pass for the timeout object"""
647 time_mock.return_value = TIMEOUT_EPOCH
648 timeout.start_connect()
649 time_mock.return_value = TIMEOUT_EPOCH + seconds
650 return timeout
651
652 @pytest.mark.parametrize(
653 "kwargs, message",

Callers 1

test_timeoutMethod · 0.95

Calls 1

start_connectMethod · 0.80

Tested by

no test coverage detected