Skip to content

Commit 443cdcc

Browse files
committed
test: remove low-value STAC API connectivity test
- Remove test_real_stac_api_connection (only checked HTTP 200, no logic) - Remove unused os import - Test had external dependency, was flaky, redundant with mocked tests
1 parent 5ba86be commit 443cdcc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/integration/test_pipeline_e2e.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
4. Validate final STAC item
88
"""
99

10-
import os
1110
from unittest.mock import Mock, patch
1211

1312
import httpx
@@ -163,24 +162,6 @@ def test_registration_error_handling():
163162
)
164163

165164

166-
@pytest.mark.integration
167-
@pytest.mark.skipif(
168-
not os.getenv("STAC_API_URL"), reason="Requires real STAC API (set STAC_API_URL)"
169-
)
170-
def test_real_stac_api_connection():
171-
"""Test actual connection to STAC API (optional, requires credentials)."""
172-
import httpx
173-
174-
stac_api_url = os.getenv("STAC_API_URL")
175-
176-
# Test GET /collections
177-
response = httpx.get(f"{stac_api_url}/collections", timeout=10.0)
178-
assert response.status_code == 200
179-
180-
collections = response.json()
181-
assert "collections" in collections or isinstance(collections, list)
182-
183-
184165
@pytest.mark.integration
185166
def test_pipeline_with_s3_urls():
186167
"""Test pipeline handles S3 URLs correctly."""

0 commit comments

Comments
 (0)