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

Function test_farthest_with_date

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

Source from the content-addressed store, hash-verified

211
212
213def test_farthest_with_date():
214 instance = pendulum.Date(2015, 5, 28)
215 dt1 = date(2015, 5, 27)
216 dt2 = date(2015, 5, 30)
217 closest = instance.farthest(dt1, dt2)
218 assert isinstance(closest, pendulum.Date)
219 assert_date(closest, 2015, 5, 30)
220
221
222def test_farthest_with_equals():

Callers

nothing calls this directly

Calls 3

farthestMethod · 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…