Skip to content

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

@dylanpulver

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
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