File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
graphdatascience/tests/integration Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ def test_remote_projection_and_writeback_custom_database_name(gds_with_cloud_set
6464 nodes_with_wcc_custom_db = gds_with_cloud_setup .run_cypher (count_wcc_nodes_query ).squeeze ()
6565 assert nodes_with_wcc_custom_db == 2
6666 gds_with_cloud_setup .set_database ("neo4j" )
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
67+ # we get a warning because property wcc doesn't exist in the database -- which is good!
68+ with pytest .warns (RuntimeWarning ):
69+ nodes_with_wcc_default_db = gds_with_cloud_setup .run_cypher (count_wcc_nodes_query ).squeeze ()
70+ assert nodes_with_wcc_default_db ["c" ] == 0
6971
7072
7173@pytest .mark .cloud_architecture
You can’t perform that action at this time.
0 commit comments