Skip to content

Commit 8254b49

Browse files
committed
Filter out id() deprecation warning
1 parent 7613427 commit 8254b49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graphdatascience/tests/integration/test_graph_ops.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import warnings
12
from typing import Generator
23

34
import numpy as np
@@ -738,6 +739,9 @@ def test_graph_relationships_stream_without_arrow(gds_without_arrow: GraphDataSc
738739
else:
739740
result = gds_without_arrow.beta.graph.relationships.stream(G, ["REL", "REL2"])
740741

742+
warnings.filterwarnings(
743+
"ignore", category=DeprecationWarning, message="The query used a deprecated function: `id`."
744+
)
741745
expected = gds_without_arrow.run_cypher(
742746
"MATCH (n)-[r]->(m) RETURN id(n) AS src_id, id(m) AS trg_id, type(r) AS rel_type"
743747
)

0 commit comments

Comments
 (0)