From c1a4a54404347ccba925a5c18249049482309caa Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Thu, 26 Sep 2024 11:43:31 +1000 Subject: [PATCH] Minor fixes from review. --- test/test_um2netcdf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_um2netcdf.py b/test/test_um2netcdf.py index 4168966..f258a28 100644 --- a/test/test_um2netcdf.py +++ b/test/test_um2netcdf.py @@ -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 @@ -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,