diff --git a/tests/test_implementations/test_pronto.py b/tests/test_implementations/test_pronto.py index d9625b807..694762cd2 100644 --- a/tests/test_implementations/test_pronto.py +++ b/tests/test_implementations/test_pronto.py @@ -90,18 +90,19 @@ def test_conflicting_oio_prefixes(self): """ See https://github.com/INCATools/ontology-access-kit/issues/702 """ - resource = OntologyResource(slug="metadata-map-prefixes-test.obo", directory=INPUT_DIR, local=True) + resource = OntologyResource( + slug="metadata-map-prefixes-test.obo", directory=INPUT_DIR, local=True + ) adapter = ProntoImplementation(resource) m = adapter.entity_metadata_map("HP:0000001") self.assertIsNotNone(m) uri = "http://www.geneontology.org/formats/oboInOwl#foo" curie = adapter.uri_to_curie(uri) # behavior is currently intentionally undefined - assert (curie == "oio:foo" or curie == "oboInOwl:foo") + assert curie == "oio:foo" or curie == "oboInOwl:foo" # must be reversible assert adapter.curie_to_uri(curie) == uri - def test_relationship_map(self): oi = self.oi rels = oi.outgoing_relationship_map("GO:0005773") diff --git a/tests/test_implementations/test_simple_obo.py b/tests/test_implementations/test_simple_obo.py index eae4d697b..5b6bb584a 100644 --- a/tests/test_implementations/test_simple_obo.py +++ b/tests/test_implementations/test_simple_obo.py @@ -108,14 +108,16 @@ def test_conflicting_oio_prefixes(self): See https://github.com/INCATools/ontology-access-kit/issues/702 """ # TODO: DRY. This is currently duplicative of a pronto test - resource = OntologyResource(slug="metadata-map-prefixes-test.obo", directory=INPUT_DIR, local=True) + resource = OntologyResource( + slug="metadata-map-prefixes-test.obo", directory=INPUT_DIR, local=True + ) adapter = SimpleOboImplementation(resource) m = adapter.entity_metadata_map("HP:0000001") self.assertIsNotNone(m) uri = "http://www.geneontology.org/formats/oboInOwl#foo" curie = adapter.uri_to_curie(uri) # behavior is currently intentionally undefined - assert (curie == "oio:foo" or curie == "oboInOwl:foo") + assert curie == "oio:foo" or curie == "oboInOwl:foo" # must be reversible assert adapter.curie_to_uri(curie) == uri