Test that cftimeindex has calendar property in repr.
(calendar, expected)
| 1099 | ], |
| 1100 | ) |
| 1101 | def test_cftimeindex_calendar_repr(calendar, expected): |
| 1102 | """Test that cftimeindex has calendar property in repr.""" |
| 1103 | index = xr.date_range(start="2000", periods=3, calendar=calendar, use_cftime=True) |
| 1104 | repr_str = index.__repr__() |
| 1105 | assert f" calendar='{expected}'" in repr_str |
| 1106 | assert "2000-01-01 00:00:00, 2000-01-02 00:00:00" in repr_str |
| 1107 | |
| 1108 | |
| 1109 | @requires_cftime |
nothing calls this directly
no test coverage detected
searching dependent graphs…