Skip to content

Fix integration tests for SearchResult API#62

Closed
chrislyonsKY wants to merge 4 commits into
mainfrom
feature/validation-fix
Closed

Fix integration tests for SearchResult API#62
chrislyonsKY wants to merge 4 commits into
mainfrom
feature/validation-fix

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

Test plan

  • CI integration job passes (all 11 previously failing tests now pass or skip)
  • No regressions in the 24 previously passing tests

🤖 Generated with Claude Code

chrislyonsKY and others added 4 commits April 1, 2026 12:59
- Use hasattr for reader.close() (not available in all laspy versions)
- Execute notebook against live KyFromAbove data with real output:
  DEM COG, ortho COG, COPC point cloud, rio-cogeo deep validation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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>
@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

@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

❌ Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/abovepy/validate.py 0.00% 17 Missing ⚠️

📢 Thoughts on this report? Let us know!

@chrislyonsKY
Copy link
Copy Markdown
Owner Author

Replaced by new PR from fix/integration-tests branch (code scanning rule blocked pushes to original branch)

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