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

Function test_closest_with_date

tests/date/test_comparison.py:185–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184
185def test_closest_with_date():
186 instance = pendulum.Date(2015, 5, 28)
187 dt1 = date(2015, 5, 27)
188 dt2 = date(2015, 5, 30)
189 closest = instance.closest(dt1, dt2)
190 assert isinstance(closest, pendulum.Date)
191 assert_date(closest, 2015, 5, 27)
192
193
194def test_closest_with_equals():

Callers

nothing calls this directly

Calls 3

closestMethod · 0.95
assert_dateFunction · 0.90
dateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…