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

Function test_range_inverted

tests/interval/test_range.py:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def test_range_inverted():
34 dt1 = pendulum.datetime(2000, 1, 1, 12, 45, 37)
35 dt2 = pendulum.datetime(2000, 1, 31, 12, 45, 37)
36
37 p = Interval(dt2, dt1)
38 r = list(p.range("days"))
39
40 assert len(r) == 31
41 assert_datetime(r[-1], 2000, 1, 1, 12, 45, 37)
42 assert_datetime(r[0], 2000, 1, 31, 12, 45, 37)
43
44
45def test_iter():

Callers

nothing calls this directly

Calls 4

rangeMethod · 0.95
IntervalClass · 0.90
assert_datetimeFunction · 0.90
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…