Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_am_pm
Function
test_am_pm
tests/formatting/test_formatter.py:136–140 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
134
135
136
def
test_am_pm():
137
f = Formatter()
138
d = pendulum.datetime(2016, 8, 28, 23)
139
assert f.format(d,
"A"
) ==
"PM"
140
assert f.format(d.set(hour=11),
"A"
) ==
"AM"
141
142
143
def
test_hour():
Callers
nothing calls this directly
Calls
4
format
Method · 0.95
Formatter
Class · 0.90
datetime
Method · 0.45
set
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…