Skip to content

Commit

Permalink
patch unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VeckoTheGecko committed Oct 23, 2024
1 parent a9b96b9 commit 4e66000
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/tools/test_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ def test_TimeConverter_standard():
assert TimeConverter(0).time_origin == 0


def test_TimeConverter_invalid():
with pytest.raises(TypeError):
TimeConverter("invalid")


def test_TimeConverter_reltime_one_day():
ONE_DAY = 24 * 60 * 60
first_jan = [c(1990, 1, 1) for c in cf_datetime_classes] + [0]
Expand All @@ -49,7 +44,6 @@ def test_TimeConverter_reltime_one_day():
"x, y",
[
pytest.param(np.datetime64("2001-01-01T12:00"), 0, id="datetime64 float"),
pytest.param(np.timedelta64(1, "s"), 0, id="timedelta64 float"),
pytest.param(cftime.DatetimeNoLeap(1990, 1, 1), 0, id="cftime float"),
pytest.param(cftime.DatetimeNoLeap(1990, 1, 1), cftime.DatetimeAllLeap(1991, 1, 1), id="cftime cftime"),
],
Expand Down

0 comments on commit 4e66000

Please sign in to comment.