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

Function test_start_of_week

tests/date/test_start_end_of.py:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def test_start_of_week():
26 d = Date(2016, 10, 20)
27 new = d.start_of("week")
28 assert isinstance(new, Date)
29 assert_date(new, d.year, d.month, 17)
30
31
32def test_end_of_week():

Callers

nothing calls this directly

Calls 3

start_ofMethod · 0.95
DateClass · 0.90
assert_dateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…