MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_travel_with_frozen_time

Function test_travel_with_frozen_time

tests/testing/test_time_travel.py:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35@pytest.mark.skipif(PYPY, reason="Time travelling not available on PyPy")
36def test_travel_with_frozen_time() -> None:
37 pendulum.travel(minutes=5, freeze=True)
38
39 now = pendulum.now()
40
41 sleep(0.01)
42
43 assert now == pendulum.now()
44
45
46@pytest.mark.skipif(PYPY, reason="Time travelling not available on PyPy")

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
travelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…