Skip to content

Fix tests specific to NodeNorm ES#76

Draft
gaurav wants to merge 13 commits into
add-github-issue-testsfrom
fix-nodenorm-openapi-validation
Draft

Fix tests specific to NodeNorm ES#76
gaurav wants to merge 13 commits into
add-github-issue-testsfrom
fix-nodenorm-openapi-validation

Conversation

@gaurav
Copy link
Copy Markdown
Collaborator

@gaurav gaurav commented Apr 30, 2026

This PR updates tests that need to be modified for NodeNorm ElasticSearch.

WIP. Should be merged after PR #67.

gaurav and others added 13 commits April 30, 2026 16:01
Tests that NodeNorm ES returns a valid dict for the specific ~300-CURIE
list that was reported to cause failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…oducer.

Three test shapes: all CURIEs minus the bad pair (passes), the minimal
failing pair CHEBI:17310 + DRUGBANK:DB00058 (xfail), and each CURIE
individually (all pass).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UNII:2ZM8CX04RZ triggers HTTP 500 with drug_chemical_conflate=True on both
ci and ci-biothings; passes with drug_chemical_conflate=False.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NCBITaxon:2 returns null when queried alongside MESH:C029371, but succeeds
alongside MESH:D008795 or on its own.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Asserts that equivalent_identifiers returned by /get_normalized_nodes for
the three CURIEs in the issue (UMLS:C0106127, CHEMBL.COMPOUND:CHEMBL221542,
PUBCHEM.COMPOUND:222284) contains no duplicate identifiers, and that the
unique counts match the issue (17 without drug_chemical_conflate, 32 with).
Currently fails on Redis backends with drug_chemical_conflate=true; passes
on ES.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…e output

Parametrize over each CURIE individually so failures are reported per-CURIE
rather than grouped. Include a numbered list of equivalent_identifiers (with
duplicate markers) in assertion messages so failures are self-explanatory
without needing extra flags.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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