@@ -70,7 +70,7 @@ def _validate_translated_rgb_jpeg(src):
7070 assert src .photometric .value == "YCbCr"
7171 assert src .interleaving .value == "PIXEL"
7272 assert src .overviews (1 ) == [2 , 4 , 8 ]
73- assert src .tags ()["OVR_RESAMPLING_ALG " ] == "NEAREST"
73+ assert src .tags ()["OVERVIEW_RESAMPLING " ] == "NEAREST"
7474 assert not has_mask_band (src )
7575
7676
@@ -328,7 +328,7 @@ def test_cog_translate_tags(runner):
328328 with runner .isolated_filesystem ():
329329 cog_translate (raster_path_tags , "cogeo.tif" , jpeg_profile , quiet = True )
330330 with rasterio .open ("cogeo.tif" ) as src :
331- assert src .tags ()["OVR_RESAMPLING_ALG " ] == "NEAREST"
331+ assert src .tags ()["OVERVIEW_RESAMPLING " ] == "NEAREST"
332332 assert src .tags ()["DatasetName" ] == "my useful dataset"
333333 assert src .descriptions [0 ] == "first band"
334334 assert src .descriptions [1 ] == "second band"
@@ -342,14 +342,14 @@ def test_cog_translate_tags(runner):
342342 additional_cog_metadata = {"comment" : "it should work" },
343343 )
344344 with rasterio .open ("cogeo.tif" ) as src :
345- assert src .tags ()["OVR_RESAMPLING_ALG " ] == "NEAREST"
345+ assert src .tags ()["OVERVIEW_RESAMPLING " ] == "NEAREST"
346346 assert src .tags ()["comment" ] == "it should work"
347347
348348 cog_translate (
349349 raster_path_tags , "cogeo.tif" , raw_profile , indexes = [2 ], quiet = True
350350 )
351351 with rasterio .open ("cogeo.tif" ) as src :
352- assert src .tags ()["OVR_RESAMPLING_ALG " ] == "NEAREST"
352+ assert src .tags ()["OVERVIEW_RESAMPLING " ] == "NEAREST"
353353 assert src .tags ()["DatasetName" ] == "my useful dataset"
354354 assert src .descriptions [0 ] == "second band"
355355
0 commit comments