MCPcopy 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
136def 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
143def test_hour():

Callers

nothing calls this directly

Calls 4

formatMethod · 0.95
FormatterClass · 0.90
datetimeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…