From 6252e9be75ba837e1b4e0ae6aa9e49a3ee6ad7e6 Mon Sep 17 00:00:00 2001 From: "stephen.worsley" Date: Fri, 17 Jun 2022 11:48:35 +0100 Subject: [PATCH] fix tests --- .../analysis/regrid/test__CurvilinearRegridder.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/iris/tests/unit/analysis/regrid/test__CurvilinearRegridder.py b/lib/iris/tests/unit/analysis/regrid/test__CurvilinearRegridder.py index be1e208b08b..68db839d066 100644 --- a/lib/iris/tests/unit/analysis/regrid/test__CurvilinearRegridder.py +++ b/lib/iris/tests/unit/analysis/regrid/test__CurvilinearRegridder.py @@ -98,9 +98,8 @@ def test_same_src_as_init(self): patch_setup.assert_called_once_with( src_grid, self.weights, target_grid ) - dims = (0, 1) patch_operate.assert_called_once_with( - src_grid, dims, mock.sentinel.regrid_info + src_grid, mock.sentinel.regrid_info ) # The result is a re-merged version of the internal result, so it is # therefore '==' but not the same object. @@ -137,9 +136,8 @@ def test_diff_src_from_init(self): self.func_operate, return_value=self.dummy_slice_result ) as patch_operate: _ = regridder(different_src_cube) - dims = (0, 1) patch_operate.assert_called_once_with( - different_src_cube, dims, mock.sentinel.regrid_info + different_src_cube, mock.sentinel.regrid_info ) def test_caching(self): @@ -162,12 +160,11 @@ def test_caching(self): src_grid, self.weights, target_grid ) self.assertEqual(len(patch_operate.call_args_list), 2) - dims = (0, 1) self.assertEqual( patch_operate.call_args_list, [ - mock.call(src_grid, dims, mock.sentinel.regrid_info), - mock.call(different_src_cube, dims, mock.sentinel.regrid_info), + mock.call(src_grid, mock.sentinel.regrid_info), + mock.call(different_src_cube, mock.sentinel.regrid_info), ], )