Skip to content

PAL-1216 Add unit tests for important medhelm scenarios#16

Merged
iulianigas merged 5 commits into
mainfrom
iulian_tests
May 13, 2026
Merged

PAL-1216 Add unit tests for important medhelm scenarios#16
iulianigas merged 5 commits into
mainfrom
iulian_tests

Conversation

@iulianigas
Copy link
Copy Markdown

Adds pytest coverage for HELM medical scenarios: ACI-Bench, EHR-SQL, HeadQA, MedBullets, MedEC, MediQA, MedicationQA, MedDialog, MedMCQA, MT-Samples (procedures and replicate), and PubMedQA. Each test asserts scenario metadata and instance wiring consistent with existing scenario patterns.

Adds pytest coverage for HELM medical scenarios: ACI-Bench, EHR-SQL, HeadQA, MedBullets, MedEC, MediQA, MedicationQA, MedDialog, MedMCQA, MT-Samples (procedures and replicate), and PubMedQA. Each test asserts scenario metadata and instance wiring consistent with existing scenario patterns.

Co-authored-by: Cursor <cursoragent@cursor.com>
iulianigas and others added 3 commits May 12, 2026 15:03
Mock pd.read_excel alongside ensure_file_downloaded so unit tests no longer write xlsx via openpyxl (optional dependency missing under pytest defaults).

Declare openpyxl under medhelm[s] scenarios for real spreadsheet reads and update uv.lock accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…data narrow)

- Med MCQA: use Optional[list[Any]] for patched JSONL defaults (no_implicit_optional).
- HeadQA / EHR-SQL: narrow Instance.extra_data before indexing or combine checks so dict[str, Any] | None is valid.

Co-authored-by: Cursor <cursoragent@cursor.com>
@iulianigas iulianigas changed the title PAL-1216 Add scenario unit tests for important medhelm scenarios PAL-1216 Add unit tests for important medhelm scenarios May 12, 2026
HeadQA (dvilares/head_qa) and InfiniteBench loaders use Hub repos with custom scripts; newer datasets rejects interactive prompts on Linux runners unless trust_remote_code is set explicitly.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown

@blidiselalin blidiselalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go

@iulianigas iulianigas merged commit 2de7e00 into main May 13, 2026
9 checks passed
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.

3 participants