Skip to content

Commit

Permalink
fix ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAlidoost committed Oct 22, 2024
1 parent 1eab581 commit 49637d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_recipes/test_simple_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def test_recipe(tmp_path: Path, mocker):
# Check if time frequency is correct
assert ds.time.diff("time").min() == np.timedelta64(1, "h")


def test_recipe_with_lower_frequency(tmp_path: Path, mocker):
with (
patch.object(DATASETS["era5"], "download"),
Expand Down Expand Up @@ -88,6 +89,7 @@ def test_recipe_with_lower_frequency(tmp_path: Path, mocker):
# check the lenght of the time dimension, mean values are used
assert len(ds.time) == 4


def test_recipe_with_higher_frequency(tmp_path: Path, mocker):
with (
patch.object(DATASETS["era5"], "download"),
Expand Down Expand Up @@ -123,6 +125,7 @@ def test_recipe_with_higher_frequency(tmp_path: Path, mocker):
# check the lenght of the time dimension, data is interpolated
assert len(ds.time) == 47


def test_recipe_with_two_time_values(tmp_path: Path, mocker):
with (
patch.object(DATASETS["era5"], "download"),
Expand Down

0 comments on commit 49637d1

Please sign in to comment.