@@ -473,7 +473,8 @@ def test_graph_nodeProperties_stream_without_arrow_separate_property_columns(
473473def test_graph_streamRelationshipProperty_with_arrow (gds : GraphDataScience ) -> None :
474474 G , _ = gds .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : "relX" }})
475475
476- result = gds .graph .streamRelationshipProperty (G , "relX" , concurrency = 2 )
476+ with pytest .warns (DeprecationWarning ):
477+ result = gds .graph .streamRelationshipProperty (G , "relX" , concurrency = 2 )
477478 assert {e for e in result ["propertyValue" ]} == {4 , 5 , 6 }
478479
479480
@@ -488,7 +489,8 @@ def test_graph_relationshipProperty_stream_with_arrow(gds: GraphDataScience) ->
488489def test_graph_streamRelationshipProperty_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
489490 G , _ = gds_without_arrow .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : "relX" }})
490491
491- result = gds_without_arrow .graph .streamRelationshipProperty (G , "relX" , concurrency = 2 )
492+ with pytest .warns (DeprecationWarning ):
493+ result = gds_without_arrow .graph .streamRelationshipProperty (G , "relX" , concurrency = 2 )
492494 assert {e for e in result ["propertyValue" ]} == {4 , 5 , 6 }
493495
494496
@@ -503,7 +505,8 @@ def test_graph_relationshipProperty_stream_without_arrow(gds_without_arrow: Grap
503505def test_graph_streamRelationshipProperties_with_arrow (gds : GraphDataScience ) -> None :
504506 G , _ = gds .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : ["relX" , "relY" ]}})
505507
506- result = gds .graph .streamRelationshipProperties (G , ["relX" , "relY" ], concurrency = 2 )
508+ with pytest .warns (DeprecationWarning ):
509+ result = gds .graph .streamRelationshipProperties (G , ["relX" , "relY" ], concurrency = 2 )
507510
508511 assert list (result .keys ()) == [
509512 "sourceNodeId" ,
@@ -542,7 +545,10 @@ def test_graph_relationshipProperties_stream_with_arrow(gds: GraphDataScience) -
542545def test_graph_streamRelationshipProperties_with_arrow_separate_property_columns (gds : GraphDataScience ) -> None :
543546 G , _ = gds .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : ["relX" , "relY" ]}})
544547
545- result = gds .graph .streamRelationshipProperties (G , ["relX" , "relY" ], separate_property_columns = True , concurrency = 2 )
548+ with pytest .warns (DeprecationWarning ):
549+ result = gds .graph .streamRelationshipProperties (
550+ G , ["relX" , "relY" ], separate_property_columns = True , concurrency = 2
551+ )
546552
547553 assert list (result .keys ()) == ["sourceNodeId" , "targetNodeId" , "relationshipType" , "relX" , "relY" ]
548554 assert {e for e in result ["relX" ]} == {4 , 5 , 6 }
@@ -563,7 +569,8 @@ def test_graph_relationshipProperties_stream_with_arrow_separate_property_column
563569def test_graph_streamRelationshipProperties_without_arrow (gds_without_arrow : GraphDataScience ) -> None :
564570 G , _ = gds_without_arrow .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : ["relX" , "relY" ]}})
565571
566- result = gds_without_arrow .graph .streamRelationshipProperties (G , ["relX" , "relY" ], concurrency = 2 )
572+ with pytest .warns (DeprecationWarning ):
573+ result = gds_without_arrow .graph .streamRelationshipProperties (G , ["relX" , "relY" ], concurrency = 2 )
567574
568575 assert list (result .keys ()) == [
569576 "sourceNodeId" ,
@@ -604,9 +611,10 @@ def test_graph_streamRelationshipProperties_without_arrow_separate_property_colu
604611) -> None :
605612 G , _ = gds_without_arrow .graph .project (GRAPH_NAME , "*" , {"REL" : {"properties" : ["relX" , "relY" ]}})
606613
607- result = gds_without_arrow .graph .streamRelationshipProperties (
608- G , ["relX" , "relY" ], separate_property_columns = True , concurrency = 2
609- )
614+ with pytest .warns (DeprecationWarning ):
615+ result = gds_without_arrow .graph .streamRelationshipProperties (
616+ G , ["relX" , "relY" ], separate_property_columns = True , concurrency = 2
617+ )
610618
611619 assert list (result .keys ()) == ["sourceNodeId" , "targetNodeId" , "relationshipType" , "relX" , "relY" ]
612620 assert {e for e in result ["relX" ]} == {4 , 5 , 6 }
0 commit comments