MCPcopy 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
230def 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
238def test_is_past():

Callers

nothing calls this directly

Calls 5

DateTimeClass · 0.90
nowMethod · 0.80
travel_toMethod · 0.45
is_futureMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…