From cbb6ecaedb83c5f2554057f0fb5b5ebdf4ab6e5e Mon Sep 17 00:00:00 2001 From: Sundareswar Pullela <110754869+sundareswarpullela@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:35:34 -0700 Subject: [PATCH] Fix failing test issues #2380 --- code/ARAX/test/test_ARAX_json_queries.py | 2 +- code/ARAX/test/test_ARAX_resultify.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ARAX/test/test_ARAX_json_queries.py b/code/ARAX/test/test_ARAX_json_queries.py index cd20955cf..fa0a72dae 100644 --- a/code/ARAX/test/test_ARAX_json_queries.py +++ b/code/ARAX/test/test_ARAX_json_queries.py @@ -180,7 +180,7 @@ def test_workflow1(): } nodes_by_qg_id, edges_by_qg_id, response = _run_query_and_do_standard_testing(json_query=query) essences = [x.to_dict()['essence'].upper() for x in response.envelope.message.results] - assert 'CYCLOOXYGENASE' in essences + assert 'VANILLOID RECEPTOR' in essences @pytest.mark.slow def test_workflow2(): diff --git a/code/ARAX/test/test_ARAX_resultify.py b/code/ARAX/test/test_ARAX_resultify.py index 33b411291..6cbc3f08d 100644 --- a/code/ARAX/test/test_ARAX_resultify.py +++ b/code/ARAX/test/test_ARAX_resultify.py @@ -30,7 +30,7 @@ DIABETES_CURIE = "MONDO:0005015" TYPE_1_DIABETES_CURIE = "MONDO:0005147" -INSULIN_CURIE = "PUBCHEM.COMPOUND:16137271" +INSULIN_CURIE = "UNII:4FT78T86XV" HEART_DISEASE_CURIE = "MONDO:0005267" @@ -1478,6 +1478,7 @@ def test_node_binding_query_id_one_hop_single_input_curie(): assert any(edge.predicate == "biolink:subclass_of" for edge in message.knowledge_graph.edges.values()) insulin_results = [result for result in message.results if any([node_binding.id == INSULIN_CURIE for node_binding in result.node_bindings["n01"]])] + assert len(insulin_results) == 1