Skip to content

Commit

Permalink
conda for CI testing v11
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom authored and Tom committed Aug 7, 2024
1 parent 4317aa6 commit 2eb4fed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ def test_cypher_query_does_run(self, G):
x = G.run_cypher("RETURN 'hello';")
assert len(x[0]) > 0

def test_graph_statistics(self, G):
graph_statistics = G.get_graph_statistics()

assert set(graph_statistics.keys()) == {
"nodeCount",
"relCount",
"labelCount",
"relTypeCount",
}

def test_find_node(self, G):
warfarin_node = G.find_node(properties={"commonName": "Warfarin"})
assert warfarin_node["commonName"] == "Warfarin"
assert warfarin_node["xrefPubchemCID"] == "54678486"

def test_dsstox_to_casrn_converts(self, G):
converted_ids = G.convert_ids(
node_type="Chemical",
Expand Down

0 comments on commit 2eb4fed

Please sign in to comment.