File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
graphdatascience/tests/integration Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments