Skip to content

Commit

Permalink
Update testing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Sep 23, 2023
1 parent e698b10 commit 6436ef0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/biomappings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ def test_prediction_types(self):
def test_relations(self):
"""Test that the relation is a CURIE."""
for label, line, mapping in self._iter_groups():
pt = mapping["relation"]
parts = mapping["relation"].split(":")
self.assertEqual(2, len(parts))
prefix, identifier = parts
self.assert_canonical_identifier(prefix, identifier, label, line)
self.assertNotEqual("ro", prefix, msg="RO should be capitalized")
if prefix != "RO":
self.assert_canonical_identifier(prefix, identifier, label, line)

def test_canonical_prefixes(self):
"""Test that all mappings use canonical bioregistry prefixes."""
Expand Down

0 comments on commit 6436ef0

Please sign in to comment.