Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_is_future
Function
test_is_future
tests/datetime/test_getters.py:230–235 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
228
229
230
def
test_is_future():
231
with
pendulum.travel_to(DateTime(2000, 1, 1)):
232
d = pendulum.now()
233
assert not d.is_future()
234
d = d.add(days=1)
235
assert d.is_future()
236
237
238
def
test_is_past():
Callers
nothing calls this directly
Calls
5
DateTime
Class · 0.90
now
Method · 0.80
travel_to
Method · 0.45
is_future
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…