Skip to content

Commit 0179b89

Browse files
committed
perf: use small.tif instead of top_potsdam_2_13.tif in tests
Switch test fixtures to sample/small.tif (1539x1379) to reduce CI test time from ~3min to ~10s.
1 parent 20d9076 commit 0179b89

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ def sample_data_path():
1717
Fixture that returns the path to the sample data file.
1818
1919
Returns:
20-
str: Path to sample/top_potsdam_2_13.tif
20+
str: Path to sample/small.tif
2121
"""
2222
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
23-
sample_path = os.path.join(project_root, "sample", "top_potsdam_2_13.tif")
23+
sample_path = os.path.join(project_root, "sample", "small.tif")
2424

2525
if not os.path.exists(sample_path):
2626
pytest.skip(f"Sample data not found at: {sample_path}")
@@ -77,11 +77,11 @@ def sample_raster_path():
7777
This is a simple alias for backward compatibility.
7878
7979
Returns:
80-
str: Path to sample/top_potsdam_2_13.tif
80+
str: Path to sample/small.tif
8181
"""
8282
# Copy the logic from sample_data_path to avoid direct fixture calls
8383
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
84-
sample_path = os.path.join(project_root, "sample", "top_potsdam_2_13.tif")
84+
sample_path = os.path.join(project_root, "sample", "small.tif")
8585

8686
if not os.path.exists(sample_path):
8787
pytest.skip(f"Sample data not found at: {sample_path}")

0 commit comments

Comments
 (0)