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

Function test_yesterday

tests/datetime/test_construct.py:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75def test_yesterday():
76 now = pendulum.now().start_of("day")
77 yesterday = pendulum.yesterday()
78
79 assert isinstance(yesterday, DateTime)
80 assert now.diff(yesterday, False).in_days() == -1
81
82
83def test_now():

Callers

nothing calls this directly

Calls 4

nowMethod · 0.80
start_ofMethod · 0.45
in_daysMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…