Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
75
def
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
83
def
test_now():
Callers
nothing calls this directly
Calls
4
now
Method · 0.80
start_of
Method · 0.45
in_days
Method · 0.45
diff
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…