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

Function test_hour

tests/formatting/test_formatter.py:143–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142
143def test_hour():
144 f = Formatter()
145 d = pendulum.datetime(2016, 8, 28, 7)
146 assert f.format(d, "H") == "7"
147 assert f.format(d, "HH") == "07"
148
149 d = pendulum.datetime(2016, 8, 28, 0)
150 assert f.format(d, "h") == "12"
151 assert f.format(d, "hh") == "12"
152
153
154def test_minute():

Callers

nothing calls this directly

Calls 3

formatMethod · 0.95
FormatterClass · 0.90
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…