Skip to content

Fix test_parse_no_run_reasons to expect snake_case key - #57

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/test-no-run-reasons-fix
Apr 22, 2026
Merged

Fix test_parse_no_run_reasons to expect snake_case key#57
Jammy2211 merged 1 commit into
mainfrom
feature/test-no-run-reasons-fix

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

tests/test_result_collector.py::test_parse_no_run_reasons has been broken on main since commit e72a077 ("Rename per-sampler plotter stems to snake_case") renamed the GetDist entry in autobuild/config/no_run.yaml to get_dist. The test still asserted the old CamelCase key, so pytest tests/ has been failing on every run. This PR updates the two assertions in the test to match the snake_case convention that the YAML now uses.

Surfaced during the HowToFit build-target PR (#55), where the failing test had to be --deselected to ship. This closes that loose end.

Closes #56.

API Changes

None — test-only change. No production code, YAML, or workflow modified.
See full details below.

Test Plan

  • python -m pytest tests/ — 40/40 pass (no deselects needed).
Full API Changes (for automation & release notes)

Added

None.

Removed

None.

Renamed

None.

Changed Signature

None.

Changed Behaviour

None — test-only change. The production code (parse_no_run_reasons) and the config (no_run.yaml) were already correct after the e72a077 rename; only the test assertion lagged behind.

Migration

None.

🤖 Generated with Claude Code

Commit e72a077 renamed `GetDist` to `get_dist` in
`autobuild/config/no_run.yaml` but the assertion in
`tests/test_result_collector.py::test_parse_no_run_reasons` still
checked for the old CamelCase key, so `pytest tests/` has been failing
on `main`. Update the test to match the YAML.
@Jammy2211 Jammy2211 added the pending-release Merged PR awaiting inclusion in the next release build label Apr 22, 2026
@Jammy2211
Jammy2211 merged commit 3392dd8 into main Apr 22, 2026
@Jammy2211
Jammy2211 deleted the feature/test-no-run-reasons-fix branch April 22, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release Merged PR awaiting inclusion in the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: test_parse_no_run_reasons expects stale GetDist key

1 participant