Repository navigation
test(streamflow): pin GEOGLOWS_RETRO citation/licence and NWIS pitfall pointer (DEMO-1 finding, fix already in 0.2.10) - #23
Merged
Conversation
…tfall pointer; fix direct_api docstring The citation/licence/pointer fixes shipped in 0.2.10 (#20); this adds the regression tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finding already fixed on main
The review asked for the
GEOGLOWS_RETROcitation ("Ashby et al. (2023)") and licence line ("No account, no token, no licence acceptance", no attribution) to be corrected, and the danglingGRDC_STREAMFLOWpointer removed. origin/main already has all three (#20, released in 0.2.10): Hales et al., J. Flood Risk Manag., doi:10.1111/jfr3.12859; CC BY 4.0 with attribution required; the NWIS pitfall names GRDC-Caravan. The findings file was written against a stale local checkout. I made no registry edit.What this PR adds
tests/test_streamflow_citation_licence.py(4 offline tests) so the text cannot regress; all 4 fail on the pre-docs: correct GEOGLOWS_RETRO citation/licence; fix dangling GRDC_STREAMFLOW pointer #20 registry (checked againste94c10e^). One walks every product'scommon_pitfallsand fails if a*_STREAMFLOW/*_RETRO/*_FLOODtoken does not resolve to a registered product.sources/direct_api.pydocstring no longer lists "GRDC monthly streamflow (Phase 4)" as if built.scripts/gen_product_tables.py --check: OK (57 products, 19 variables); generated tables carry no citation/licence text, so nothing to regenerate.Full offline suite (
pytest tests/ -m "not live"): 1008 passed, 56 deselected.🤖 Generated with Claude Code