(freq: str)
| 1389 | |
| 1390 | @pytest.mark.parametrize("freq", ["YE", "ME", "D"]) |
| 1391 | def test_dayofyear_after_cftime(freq: str) -> None: |
| 1392 | result = date_range("2000-02-01", periods=3, freq=freq, use_cftime=True).dayofyear |
| 1393 | # TODO: remove once requiring pandas 2.2+ |
| 1394 | freq = _new_to_legacy_freq(freq) |
| 1395 | expected = pd.date_range("2000-02-01", periods=3, freq=freq).dayofyear |
| 1396 | np.testing.assert_array_equal(result, expected) |
| 1397 | |
| 1398 | |
| 1399 | def test_cftime_range_standard_calendar_refers_to_gregorian() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…