Skip to content

Commit

Permalink
Fix failing test issues #2380
Browse files Browse the repository at this point in the history
  • Loading branch information
sundareswarpullela committed Oct 2, 2024
1 parent e626170 commit cbb6eca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/ARAX/test/test_ARAX_json_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
3 changes: 2 additions & 1 deletion code/ARAX/test/test_ARAX_resultify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down Expand Up @@ -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


Expand Down

0 comments on commit cbb6eca

Please sign in to comment.