Skip to content

Commit

Permalink
Minor fixes from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
truth-quark committed Sep 26, 2024
1 parent 0f3fb26 commit c1a4a54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_um2netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def __init__(self, item_code, var_name=None, attributes=None,
self.item_code = item_code
self.var_name = var_name or "unknown_var"
self.attributes = attributes
self.units = None or units
self.units = units
self.standard_name = None
self.long_name = None
self.data = None
Expand Down Expand Up @@ -979,7 +979,9 @@ def test_fix_latlon_coords_missing_coord_error(ua_plev_cube):
standard_name="height"
)

cube_with_fake_coord = DummyCube(ua_plev_cube.item_code, coords=fake_coord)
cube_with_fake_coord = DummyCube(ua_plev_cube.item_code,
ua_plev_cube.var_name,
coords=fake_coord)

with pytest.raises(um2nc.UnsupportedTimeSeriesError):
um2nc.fix_latlon_coords(cube_with_fake_coord, um2nc.GRID_NEW_DYNAMICS,
Expand Down

0 comments on commit c1a4a54

Please sign in to comment.