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

Function test_travel

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

Source from the content-addressed store, hash-verified

25
26@pytest.mark.skipif(PYPY, reason="Time travelling not available on PyPy")
27def test_travel() -> None:
28 now = pendulum.now()
29
30 pendulum.travel(minutes=5)
31
32 assert pendulum.now().diff_for_humans(now) == "5 minutes after"
33
34
35@pytest.mark.skipif(PYPY, reason="Time travelling not available on PyPy")

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
travelMethod · 0.45
diff_for_humansMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…