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

Function test_years

tests/duration/test_construct.py:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_years():
19 pi = pendulum.duration(years=2)
20 assert_duration(pi, years=2, weeks=0)
21 assert pi.days == 730
22 assert pi.total_seconds() == 63072000
23
24
25def test_months():

Callers

nothing calls this directly

Calls 2

assert_durationFunction · 0.90
total_secondsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…