Skip to content

Commit 9a48cb4

Browse files
committed
Format tests
1 parent 533abc3 commit 9a48cb4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_regrid.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
"nearest": DATA_PATH / "cdo_nearest_64b.nc",
1313
}
1414

15+
1516
@pytest.fixture
1617
def sample_input_data() -> xr.Dataset:
1718
return xr.open_dataset(DATA_PATH / "era5_2m_dewpoint_temperature_2000_monthly.nc")
1819

20+
1921
@pytest.fixture
2022
def sample_grid_ds():
2123
grid = xarray_regrid.Grid(
@@ -29,11 +31,14 @@ def sample_grid_ds():
2931

3032
return xarray_regrid.create_regridding_dataset(grid)
3133

34+
3235
@pytest.mark.parametrize(
33-
"method, cdo_file", [
36+
"method, cdo_file",
37+
[
3438
("linear", CDO_DATA["linear"]),
3539
("nearest", CDO_DATA["nearest"]),
36-
])
40+
],
41+
)
3742
def test_regridder(sample_input_data, sample_grid_ds, method, cdo_file):
3843
ds_regrid = sample_input_data.regrid.regrid(sample_grid_ds, method=method)
3944
ds_cdo = xr.open_dataset(cdo_file)

0 commit comments

Comments
 (0)