@@ -40,7 +40,7 @@ def setup(self):
4040 z = grid .create_axis ("lev" , np .linspace (10000 , 2000 , 2 ), generate_bounds = False )
4141 self .output_grid = grid .create_grid (z = z )
4242
43- @mock .patch ("xcdat.regridder. xgcm.Grid" )
43+ @mock .patch ("xgcm.Grid" )
4444 def test_infer_target_data (self , grid ):
4545 ds = self .ds .copy (True )
4646
@@ -75,7 +75,7 @@ def test_infer_target_data(self, grid):
7575 ):
7676 regridder .vertical ("so" , ds )
7777
78- @mock .patch ("xcdat.regridder. xgcm.Grid" )
78+ @mock .patch ("xgcm.Grid" )
7979 def test_infer_target_data_missing_formula_terms (self , _ ):
8080 ds = self .ds .copy (True )
8181
@@ -92,7 +92,7 @@ def test_infer_target_data_missing_formula_terms(self, _):
9292 ):
9393 regridder .vertical ("so" , ds )
9494
95- @mock .patch ("xcdat.regridder. xgcm.Grid" )
95+ @mock .patch ("xgcm.Grid" )
9696 def test_infer_target_data_invalid_standard_name (self , _ ):
9797 ds = self .ds .copy (True )
9898
@@ -110,7 +110,7 @@ def test_infer_target_data_invalid_standard_name(self, _):
110110 ):
111111 regridder .vertical ("so" , ds )
112112
113- @mock .patch ("xcdat.regridder. xgcm.Grid" )
113+ @mock .patch ("xgcm.Grid" )
114114 def test_infer_target_data_missing_required_variable (self , _ ):
115115 ds = self .ds .copy (True )
116116
@@ -128,7 +128,7 @@ def test_infer_target_data_missing_required_variable(self, _):
128128 ):
129129 regridder .vertical ("so" , ds )
130130
131- @mock .patch ("xcdat.regridder. xgcm.Grid" )
131+ @mock .patch ("xgcm.Grid" )
132132 def test_infer_target_data_empty_formula_terms (self , _ ):
133133 ds = self .ds .copy (True )
134134
@@ -176,7 +176,7 @@ def test_vertical_regrid(self):
176176
177177 assert output_data .so .shape == (15 , 2 , 4 , 4 )
178178
179- @mock .patch ("xcdat.regridder. xgcm.Grid" )
179+ @mock .patch ("xgcm.Grid" )
180180 def test_target_data (self , grid ):
181181 regridder = xgcm .XGCMRegridder (self .ds , self .output_grid , method = "linear" )
182182
@@ -189,7 +189,7 @@ def test_target_data(self, grid):
189189 assert "method" in call_kwargs and call_kwargs ["method" ] == "linear"
190190 assert "target_data" in call_kwargs and call_kwargs ["target_data" ] is None
191191
192- @mock .patch ("xcdat.regridder. xgcm.Grid" )
192+ @mock .patch ("xgcm.Grid" )
193193 def test_target_data_da (self , grid ):
194194 target_data = np .random .normal (size = self .ds ["so" ].shape )
195195
@@ -212,7 +212,7 @@ def test_target_data_da(self, grid):
212212
213213 xr .testing .assert_allclose (call_kwargs ["target_data" ], target_da )
214214
215- @mock .patch ("xcdat.regridder. xgcm.Grid" )
215+ @mock .patch ("xgcm.Grid" )
216216 def test_target_data_ds (self , grid ):
217217 target_data = np .random .normal (size = self .ds ["so" ].shape )
218218
0 commit comments