Skip to content

Commit

Permalink
Update test_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Dec 3, 2024
1 parent c15ff87 commit 9473d74
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
from pyobo.reader import from_obonet, get_first_nonescaped_quote
from pyobo.struct import default_reference
from pyobo.struct.struct import DEFAULT_SYNONYM_TYPE, abbreviation
from pyobo.struct.typedef import TypeDef, exact_match, has_dbxref, is_conjugate_base_of, see_also
from pyobo.struct.typedef import (
TypeDef,
derives_from,
exact_match,
has_dbxref,
is_conjugate_base_of,
see_also,
)

CHARLIE = Reference(prefix="orcid", identifier="0000-0003-4423-4370")

Expand Down Expand Up @@ -946,7 +953,7 @@ def test_mappings(self) -> None:
)

def test_default_relation(self):
"""Test parsing DO's weird url prefixing."""
"""Test parsing a default relation."""
ontology = _read("""\
ontology: chebi
Expand All @@ -956,6 +963,7 @@ def test_default_relation(self):
""")
term = self.get_only_term(ontology)
self.assertEqual(1, len(term.relationships))
self.assertIn(derives_from.reference, term.relationships)


class TestVersionHandling(unittest.TestCase):
Expand Down

0 comments on commit 9473d74

Please sign in to comment.