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

Function test_iter

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

Source from the content-addressed store, hash-verified

43
44
45def test_iter():
46 dt1 = pendulum.datetime(2000, 1, 1, 12, 45, 37)
47 dt2 = pendulum.datetime(2000, 1, 31, 12, 45, 37)
48
49 p = Interval(dt1, dt2)
50 i = 0
51 for dt in p:
52 assert isinstance(dt, pendulum.DateTime)
53 i += 1
54
55 assert i == 31
56
57
58def test_contains():

Callers

nothing calls this directly

Calls 2

IntervalClass · 0.90
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…