Skip to content

Fix integration tests for SearchResult API#63

Open
chrislyonsKY wants to merge 2 commits intomainfrom
fix/integration-tests
Open

Fix integration tests for SearchResult API#63
chrislyonsKY wants to merge 2 commits intomainfrom
fix/integration-tests

Conversation

@chrislyonsKY
Copy link
Copy Markdown
Owner

Summary

  • Fix 11 failing integration tests caused by search() returning SearchResult instead of raw GeoDataFrame
  • Replace .iloc/.columns calls with .tiles.iloc/.tiles.columns to access underlying GeoDataFrame
  • Skip laz_phase1 test when STAC has no data in Frankfort bbox (data gap, not a code bug)
  • Guard test_mosaic_vrt behind pytest.importorskip("osgeo") for CI envs without GDAL
  • Add missing pytest-timeout to [dev] dependencies (CI uses --timeout=120)

Test plan

  • CI integration job passes (all 11 previously failing tests now pass or skip)
  • No regressions in the 24 previously passing tests
  • Lint + unit tests pass across matrix (ubuntu/macos/windows × py3.11-3.13)

🤖 Generated with Claude Code

chrislyonsKY and others added 2 commits April 15, 2026 08:45
Tests used GeoDataFrame methods (.iloc, .columns) directly on
SearchResult objects. Updated to access underlying GeoDataFrame
via .tiles property. Also skip laz_phase1 on STAC data gaps and
guard mosaic test behind osgeo availability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI uses --timeout=120 but pytest-timeout was missing from
[dev] extras. Previously worked due to stale pip cache.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 high

Alerts:
⚠ 2 issues (≤ 0 issues of at least minor severity)

Results:
2 new issues

Category Results
Security 2 high

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants