Skip to content

Commit 3c7f469

Browse files
committed
Fix test code
1 parent b9028de commit 3c7f469

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

graphdatascience/tests/integration/test_remote_graph_ops.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ def test_remote_projection_and_writeback_custom_database_name(gds_with_cloud_set
6060
write_result = gds_with_cloud_setup.wcc.write(G, writeProperty="wcc")
6161

6262
assert write_result["nodePropertiesWritten"] == 2
63-
db_state = gds_with_cloud_setup.run_cypher("MATCH (n WHERE n.wcc IS NOT NULL) RETURN count(*) AS c").squeeze()
64-
assert db_state["c"] == 2
63+
count_wcc_nodes_query = "MATCH (n WHERE n.wcc IS NOT NULL) RETURN count(*) AS c"
64+
nodes_with_wcc_custom_db = gds_with_cloud_setup.run_cypher(count_wcc_nodes_query).squeeze()
65+
assert nodes_with_wcc_custom_db == 2
6566
gds_with_cloud_setup.set_database("neo4j")
66-
other_db_state = gds_with_cloud_setup.run_cypher("MATCH (n WHERE n.wcc IS NOT NULL) RETURN count(*) AS c").squeeze()
67-
assert other_db_state["c"] == 0
67+
nodes_with_wcc_default_db = gds_with_cloud_setup.run_cypher(count_wcc_nodes_query).squeeze()
68+
assert nodes_with_wcc_default_db["c"] == 0
6869

6970

7071
@pytest.mark.cloud_architecture

0 commit comments

Comments
 (0)