Skip to content

Commit dcd6320

Browse files
committed
Silence warning for missing property in test
1 parent 3c7f469 commit dcd6320

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphdatascience/tests/integration/test_remote_graph_ops.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)