MCPcopy
hub / github.com/pandas-dev/pandas / test_holiday_dates

Function test_holiday_dates

pandas/tests/tseries/holiday/test_holiday.py:127–135  ·  view source on GitHub ↗
(holiday, start_date, end_date, expected)

Source from the content-addressed store, hash-verified

125 ],
126)
127def test_holiday_dates(holiday, start_date, end_date, expected):
128 assert list(holiday.dates(start_date, end_date)) == expected
129
130 # Verify that timezone info is preserved.
131 assert list(
132 holiday.dates(
133 Timestamp(start_date, tz=timezone.utc), Timestamp(end_date, tz=timezone.utc)
134 )
135 ) == [dt.replace(tzinfo=timezone.utc) for dt in expected]
136
137
138@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

datesMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected