@@ -389,7 +389,8 @@ def test_graph_relationshipProperties_write(runner: CollectingQueryRunner, gds:
389389def test_graph_writeNodeProperties (runner : CollectingQueryRunner , gds : GraphDataScience ) -> None :
390390 G , _ = gds .graph .project ("g" , "*" , "*" )
391391
392- gds .graph .writeNodeProperties (G , ["dummyProp" ], concurrency = 2 )
392+ with pytest .warns (DeprecationWarning ):
393+ gds .graph .writeNodeProperties (G , ["dummyProp" ], concurrency = 2 )
393394 assert runner .last_query () == "CALL gds.graph.writeNodeProperties($graph_name, $properties, $entities, $config)"
394395 assert runner .last_params () == {
395396 "graph_name" : "g" ,
@@ -398,7 +399,8 @@ def test_graph_writeNodeProperties(runner: CollectingQueryRunner, gds: GraphData
398399 "config" : {"concurrency" : 2 },
399400 }
400401
401- gds .graph .writeNodeProperties (G , ["dummyProp" ], "dummyLabel" , concurrency = 2 )
402+ with pytest .warns (DeprecationWarning ):
403+ gds .graph .writeNodeProperties (G , ["dummyProp" ], "dummyLabel" , concurrency = 2 )
402404 assert runner .last_query () == "CALL gds.graph.writeNodeProperties($graph_name, $properties, $entities, $config)"
403405 assert runner .last_params () == {
404406 "graph_name" : "g" ,
@@ -434,7 +436,8 @@ def test_graph_nodeProperties_write(runner: CollectingQueryRunner, gds: GraphDat
434436def test_graph_writeRelationship (runner : CollectingQueryRunner , gds : GraphDataScience ) -> None :
435437 G , _ = gds .graph .project ("g" , "*" , "*" )
436438
437- gds .graph .writeRelationship (G , "dummyType" , "dummyProp" , concurrency = 2 )
439+ with pytest .warns (DeprecationWarning ):
440+ gds .graph .writeRelationship (G , "dummyType" , "dummyProp" , concurrency = 2 )
438441 assert (
439442 runner .last_query ()
440443 == "CALL gds.graph.writeRelationship($graph_name, $relationship_type, $relationship_property, $config)"
@@ -446,7 +449,8 @@ def test_graph_writeRelationship(runner: CollectingQueryRunner, gds: GraphDataSc
446449 "config" : {"concurrency" : 2 },
447450 }
448451
449- gds .graph .writeRelationship (G , "dummyType" , concurrency = 2 )
452+ with pytest .warns (DeprecationWarning ):
453+ gds .graph .writeRelationship (G , "dummyType" , concurrency = 2 )
450454 assert (
451455 runner .last_query ()
452456 == "CALL gds.graph.writeRelationship($graph_name, $relationship_type, $relationship_property, $config)"
@@ -557,7 +561,8 @@ def test_graph_nodeProperties_remove_drop(runner: CollectingQueryRunner, gds: Gr
557561def test_graph_deleteRelationships (runner : CollectingQueryRunner , gds : GraphDataScience ) -> None :
558562 G , _ = gds .graph .project ("g" , "*" , "*" )
559563
560- gds .graph .deleteRelationships (G , "REL_A" )
564+ with pytest .warns (DeprecationWarning ):
565+ gds .graph .deleteRelationships (G , "REL_A" )
561566 assert runner .last_query () == "CALL gds.graph.deleteRelationships($graph_name, $relationship_type)"
562567 assert runner .last_params () == {"graph_name" : "g" , "relationship_type" : "REL_A" }
563568
@@ -612,7 +617,9 @@ def test_graph_generate(runner: CollectingQueryRunner, gds: GraphDataScience) ->
612617
613618def test_alpha_graph_sample_rwr (runner : CollectingQueryRunner , gds : GraphDataScience ) -> None :
614619 from_G , _ = gds .graph .project ("g" , "*" , "*" )
615- gds .alpha .graph .sample .rwr ("s" , from_G , samplingRatio = 0.9 , concurrency = 7 )
620+
621+ with pytest .warns (DeprecationWarning ):
622+ gds .alpha .graph .sample .rwr ("s" , from_G , samplingRatio = 0.9 , concurrency = 7 )
616623
617624 assert runner .last_query () == "CALL gds.alpha.graph.sample.rwr($graph_name, $from_graph_name, $config)"
618625 assert runner .last_params () == {
0 commit comments