From 6436ef03879f4c53f37dfc8853859600c7643d97 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Sat, 23 Sep 2023 16:01:37 +0200 Subject: [PATCH] Update testing.py --- src/biomappings/testing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/biomappings/testing.py b/src/biomappings/testing.py index e42b9bb3..4d6139b5 100644 --- a/src/biomappings/testing.py +++ b/src/biomappings/testing.py @@ -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."""