Skip to content

Commit

Permalink
Update synonym parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jan 4, 2024
1 parent dc9ad7d commit d1f435e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
iterate_node_synonyms,
iterate_node_xrefs,
)
from pyobo.struct.struct import acronym
from tests.constants import TEST_CHEBI_OBO_PATH, chebi_patch


Expand Down Expand Up @@ -137,6 +138,10 @@ def test_extract_synonym(self):
Synonym(name="LTEC I", specificity="EXACT"),
'"LTEC I" []',
),
(
Synonym(name="HAdV-A", specificity="BROAD", type=acronym),
'"HAdV-A" BROAD OMO:0003012 []',
),
]:
with self.subTest(s=text):
actual_synonym = _extract_synonym(
Expand Down

0 comments on commit d1f435e

Please sign in to comment.