Skip to content

Commit

Permalink
fix some affected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwarner8 committed Dec 12, 2024
1 parent 891532e commit 9191a9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/operators/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@

def test_missing_coord_get_cube_yxcoordname_x(regrid_rectilinear_cube):
"""Missing X coordinate raises error."""
regrid_rectilinear_cube.remove_coord("longitude")
regrid_rectilinear_cube.remove_coord("grid_longitude")
with pytest.raises(ValueError):
operator_utils.get_cube_yxcoordname(regrid_rectilinear_cube)


def test_missing_coord_get_cube_yxcoordname_y(regrid_rectilinear_cube):
"""Missing Y coordinate raises error."""
regrid_rectilinear_cube.remove_coord("longitude")
regrid_rectilinear_cube.remove_coord("grid_longitude")
with pytest.raises(ValueError):
operator_utils.get_cube_yxcoordname(regrid_rectilinear_cube)


def test_get_cube_yxcoordname(regrid_rectilinear_cube):
"""Check that function returns tuple containing horizontal dimension names."""
assert (operator_utils.get_cube_yxcoordname(regrid_rectilinear_cube)) == (
"latitude",
"longitude",
"grid_latitude",
"grid_longitude",
)


Expand Down

0 comments on commit 9191a9c

Please sign in to comment.