@@ -338,20 +338,26 @@ class TestBilinearResampler(unittest.TestCase):
338338 """Test the bilinear resampler."""
339339
340340 @mock .patch ("pyresample.bilinear.XArrayBilinearResampler" )
341- def test_precompute_forwards_reduce_data (self , xr_resampler ):
342- """Test that precompute forwards reduce_data to pyresample bilinear ."""
341+ def test_precompute_forwards_bilinear_options (self , xr_resampler ):
342+ """Test that precompute forwards bilinear options to pyresample."""
343343 from satpy .resample .kdtree import BilinearResampler
344344
345345 _ , source_area , _ , _ , target_area = get_test_data ()
346346 resampler = BilinearResampler (source_area , target_area )
347347 resampler .precompute ()
348348 assert xr_resampler .call_args .kwargs ["reduce_data" ] is True
349+ assert xr_resampler .call_args .kwargs ["limit_output" ] is True
349350
350351 xr_resampler .reset_mock ()
351352 resampler = BilinearResampler (source_area , target_area )
352353 resampler .precompute (reduce_data = False )
353354 assert xr_resampler .call_args .kwargs ["reduce_data" ] is False
354355
356+ xr_resampler .reset_mock ()
357+ resampler = BilinearResampler (source_area , target_area )
358+ resampler .precompute (limit_output = False )
359+ assert xr_resampler .call_args .kwargs ["limit_output" ] is False
360+
355361 @mock .patch ("satpy.resample.kdtree._move_existing_caches" )
356362 @mock .patch ("satpy.resample.kdtree.BilinearResampler._create_cache_filename" )
357363 @mock .patch ("pyresample.bilinear.XArrayBilinearResampler" )
0 commit comments