FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Rename the second test_select_event_id so both run by dylanpulver · Pull Request #1326 · CLIMADA-project/climada_python · GitHub

Rename the second test_select_event_id so both run - #1326

Open
dylanpulver wants to merge 1 commit into
CLIMADA-project:mainfrom
dylanpulver:tests/unshadow-select-event-id
Open

dylanpulver wants to merge 1 commit into
CLIMADA-project:mainfrom
dylanpulver:tests/unshadow-select-event-id

Conversation

Copy link
Copy Markdown

TestSelect defines test_select_event_id twice, so the later definition wins and the earlier one has never been collected. They are not duplicates: the shadowed one passes a plain list, haz.select(event_id=[4, 1]), while the one that runs passes np.array([4, 1]). List input to select(event_id=...) therefore has no test.

Renaming the later one to test_select_event_id_array leaves the running test's behaviour alone and puts the list case back. TestSelect goes from 12 to 13 passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_011M5uTyCU4WcNTsPvGrErDo

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011M5uTyCU4WcNTsPvGrErDo
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL