Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
238
def
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
246
def
test_date():
Callers
nothing calls this directly
Calls
5
DateTime
Class · 0.90
now
Method · 0.80
travel_to
Method · 0.45
is_past
Method · 0.45
subtract
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…