Skip to content

Commit 018af4d

Browse files
committed
separate image list without overviews
1 parent d36a04a commit 018af4d

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

tests/image_list.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

3-
ALL_DATA_IMAGES: list[tuple[str, str]] = [
4-
("eox", "eox_cloudless"),
3+
ALL_COG_IMAGES: list[tuple[str, str]] = [
54
("nlcd", "nlcd_landcover"),
65
("rasterio", "float32_1band_lerc_block32"),
76
("rasterio", "float32_1band_lerc_deflate_block32"),
@@ -14,6 +13,12 @@
1413
("rasterio", "uint8_rgba_webp_block64_cog"),
1514
("umbra", "sydney_airport_GEC"),
1615
]
16+
"""All fixtures that have overviews where the data can be compared with rasterio."""
17+
18+
ALL_DATA_IMAGES: list[tuple[str, str]] = [
19+
*ALL_COG_IMAGES,
20+
("eox", "eox_cloudless"),
21+
]
1722
"""All fixtures where the data can be compared with rasterio."""
1823

1924

tests/test_fetch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
import pytest
99
from rasterio.windows import Window
1010

11-
from .image_list import ALL_DATA_IMAGES, ALL_MASKED_IMAGES
11+
from .image_list import (
12+
ALL_COG_IMAGES,
13+
ALL_DATA_IMAGES,
14+
ALL_MASKED_IMAGES,
15+
)
1216

1317
if TYPE_CHECKING:
1418
from .conftest import LoadGeoTIFF, LoadRasterio
@@ -40,7 +44,7 @@ async def test_fetch(
4044
@pytest.mark.asyncio
4145
@pytest.mark.parametrize(
4246
("variant", "file_name"),
43-
ALL_DATA_IMAGES,
47+
ALL_COG_IMAGES,
4448
)
4549
async def test_fetch_overview(
4650
load_geotiff: LoadGeoTIFF,

tests/test_read.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import async_geotiff
1212
from async_geotiff.exceptions import WindowError
1313

14-
from .image_list import ALL_DATA_IMAGES
14+
from .image_list import ALL_COG_IMAGES, ALL_DATA_IMAGES
1515

1616
if TYPE_CHECKING:
1717
from .conftest import LoadGeoTIFF, LoadRasterio
@@ -94,7 +94,7 @@ async def test_read_spanning_tiles(
9494
@pytest.mark.asyncio
9595
@pytest.mark.parametrize(
9696
("variant", "file_name"),
97-
ALL_DATA_IMAGES,
97+
ALL_COG_IMAGES,
9898
)
9999
async def test_read_overview(
100100
load_geotiff: LoadGeoTIFF,

0 commit comments

Comments
 (0)