MCPcopy
hub / github.com/pytest-dev/pytest / sleep

Method sleep

src/_pytest/timing.py:82–83  ·  view source on GitHub ↗
(self, seconds: float)

Source from the content-addressed store, hash-verified

80 _current_time: float = datetime(2020, 5, 22, 14, 20, 50).timestamp()
81
82 def sleep(self, seconds: float) -> None:
83 self._current_time += seconds
84
85 def time(self) -> float:
86 return self._current_time

Callers 8

test_sleepFunction · 0.80
test_sleepFunction · 0.80
test_sleepFunction · 0.80
test_atimeMethod · 0.80
test_copy_stat_fileMethod · 0.80
test_copy_stat_dirMethod · 0.80
test_errorMethod · 0.80
test_okMethod · 0.80

Calls

no outgoing calls

Tested by 8

test_sleepFunction · 0.64
test_sleepFunction · 0.64
test_sleepFunction · 0.64
test_atimeMethod · 0.64
test_copy_stat_fileMethod · 0.64
test_copy_stat_dirMethod · 0.64
test_errorMethod · 0.64
test_okMethod · 0.64