Skip to content

Commit

Permalink
Update metobs data test for period=None
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcth committed May 5, 2024
1 parent e8651d4 commit fdc1ef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_unit_metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class TestUnitData:
@pytest.mark.parametrize(
"period, data_type",
[
(None, "yaml"),
("latest", "yaml"),
(None, "json"),
("latest", "json"),
("corrected-archive", "json"),
Expand Down Expand Up @@ -509,7 +509,7 @@ def test_unit_data_init(
Data(mock_periods, period, data_type)
return None

if period is not None and period not in METOBS_AVAILABLE_PERIODS:
if period not in METOBS_AVAILABLE_PERIODS and period is not None:
with pytest.raises(NotImplementedError):
Data(mock_periods, period, data_type)
return None
Expand Down

0 comments on commit fdc1ef0

Please sign in to comment.