Skip to content

Commit

Permalink
Added test for raising of NotImplementedError on invalid MAP_PROJ
Browse files Browse the repository at this point in the history
  • Loading branch information
lpilz committed Mar 22, 2024
1 parent 3163abc commit 7570fef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def test_grid_construction_against_salem(dummy_dataset, dummy_salem):
assert grid_params['crs'] == pyproj.CRS(dummy_salem['Q2'].attrs['pyproj_srs'])


def test_raise_notimplemented_error(dummy_dataset):
dummy_dataset.attrs['MAP_PROJ'] = 'dummy'
with pytest.raises(NotImplementedError):
_wrf_grid_from_dataset(dummy_dataset)


@pytest.mark.parametrize(
'test_grid, cf_grid_mapping_name',
[
Expand Down

0 comments on commit 7570fef

Please sign in to comment.