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

Function test_average_from_lower

tests/datetime/test_start_end_of.py:256–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254
255
256def test_average_from_lower():
257 d1 = pendulum.datetime(2009, 12, 31, 23, 59, 59, tz="local")
258 d2 = pendulum.datetime(2000, 1, 1, 1, 1, 1, tz="local").average(d1)
259 assert_datetime(d2, 2004, 12, 31, 12, 30, 30)
260
261
262def start_of_with_invalid_unit():

Callers

nothing calls this directly

Calls 3

assert_datetimeFunction · 0.90
datetimeMethod · 0.45
averageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…