(calendar, argument, expected_date_args)
| 338 | ids=_id_func, |
| 339 | ) |
| 340 | def test_to_cftime_datetime(calendar, argument, expected_date_args): |
| 341 | date_type = get_date_type(calendar) |
| 342 | expected = date_type(*expected_date_args) |
| 343 | if isinstance(argument, tuple): |
| 344 | argument = date_type(*argument) |
| 345 | result = to_cftime_datetime(argument, calendar=calendar) |
| 346 | assert result == expected |
| 347 | |
| 348 | |
| 349 | def test_to_cftime_datetime_error_no_calendar(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…