Skip to content

Commit

Permalink
test: ✅ fixed test_fetch_all_operations test
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Jul 23, 2024
1 parent b645ba0 commit 478687f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tests/_utils/metakg/integration/parser/index_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ def test_fetch_meta_data(self):
self.assertEqual(self.metadata["url"], "https://platform-api.opentargets.io/v3")
self.assertEqual(self.metadata["components"], None)

# Fail
# AssertionError: 'biolink:related_to' != 'related_to'
def test_fetch_all_operations(self):
ops = self.metadata["operations"]
self.assertEqual(ops[0]["association"].get("api_name"), "OpenTarget API")
self.assertEqual(ops[0]["association"].get("predicate"), "related_to")
self.assertEqual(ops[0]["association"].get("input_id"), "ENSEMBL")
self.assertEqual(ops[0]["query_operation"].path, "/platform/public/evidence/filter")
self.assertEqual(ops[0]["association"].get("predicate"), "biolink:related_to")
self.assertEqual(ops[0]["association"].get("input_id"), "biolink:ENSEMBL")
self.assertEqual(ops[0]["query_operation"]["path"], "/platform/public/evidence/filter")


class TestAPIParserUsingSpecsWithParameters(unittest.TestCase):
Expand Down

0 comments on commit 478687f

Please sign in to comment.