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

Function test_is_past

tests/datetime/test_getters.py:238–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236
237
238def test_is_past():
239 with pendulum.travel_to(DateTime(2000, 1, 1), freeze=True):
240 d = pendulum.now()
241 assert not d.is_past()
242 d = d.subtract(days=1)
243 assert d.is_past()
244
245
246def test_date():

Callers

nothing calls this directly

Calls 5

DateTimeClass · 0.90
nowMethod · 0.80
travel_toMethod · 0.45
is_pastMethod · 0.45
subtractMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…