Skip to content

Commit

Permalink
Update test_contexts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Nov 2, 2023
1 parent 50d3208 commit b6ed42b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ def test_obo_context(self):
)

@pytest.mark.slow
def test_get_obo_converter(self):
def test_obo_converter(self):
"""Test getting a converter from a context."""
converter = manager.get_converter_from_context("obo")
self.assertEqual("ICD10WHO", converter.standardize_prefix("icd10"))
self.assertEqual("Orphanet", converter.standardize_prefix("ordo"))
self.assertEqual("GO", converter.standardize_prefix("GO", strict=True))
self.assertEqual("GO", converter.standardize_prefix("gomf", strict=True))
self.assertEqual("https://www.ncbi.nlm.nih.gov/pubmed/", converter.bimap["PMID"])
self.assertEqual("GO", converter.standardize_prefix("go", strict=True))
self.assertEqual("PMID", converter.standardize_prefix("pmid", strict=True))
self.assertEqual("PMID", converter.standardize_prefix("pubmed", strict=True))
Expand Down

0 comments on commit b6ed42b

Please sign in to comment.