@@ -17,77 +17,85 @@ def test_simple_mutate(runner: CollectingQueryRunner, gds: GraphDataScience, G:
1717 gds .algoName .mutate (G , mutateProperty = "rank" , dampingFactor = 0.2 , tolerance = 0.3 )
1818
1919 assert runner .last_query () == "CALL gds.algoName.mutate($graph_name, $config)"
20+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
2021 assert runner .last_params () == {
2122 "graph_name" : GRAPH_NAME ,
22- "config" : {"mutateProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 },
23+ "config" : {"mutateProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
2324 }
2425
2526
2627def test_simple_stats (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
2728 gds .algoName .stats (G , dampingFactor = 0.2 , tolerance = 0.3 )
2829
2930 assert runner .last_query () == "CALL gds.algoName.stats($graph_name, $config)"
31+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
3032 assert runner .last_params () == {
3133 "graph_name" : GRAPH_NAME ,
32- "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 },
34+ "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
3335 }
3436
3537
3638def test_simple_stream (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
3739 gds .algoName .stream (G , dampingFactor = 0.2 , tolerance = 0.3 )
3840
3941 assert runner .last_query () == "CALL gds.algoName.stream($graph_name, $config)"
42+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
4043 assert runner .last_params () == {
4144 "graph_name" : GRAPH_NAME ,
42- "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 },
45+ "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
4346 }
4447
4548
4649def test_simple_write (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
4750 gds .algoName .write (G , writeProperty = "rank" , dampingFactor = 0.2 , tolerance = 0.3 )
4851
4952 assert runner .last_query () == "CALL gds.algoName.write($graph_name, $config)"
53+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
5054 assert runner .last_params () == {
5155 "graph_name" : GRAPH_NAME ,
52- "config" : {"writeProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 },
56+ "config" : {"writeProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
5357 }
5458
5559
5660def test_simple_mutate_estimate (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
5761 gds .algoName .mutate .estimate (G , mutateProperty = "rank" , dampingFactor = 0.2 , tolerance = 0.3 )
5862
5963 assert runner .last_query () == "CALL gds.algoName.mutate.estimate($graph_name, $config)"
64+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
6065 assert runner .last_params () == {
6166 "graph_name" : GRAPH_NAME ,
62- "config" : {"mutateProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 },
67+ "config" : {"mutateProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
6368 }
6469
6570
6671def test_simple_stats_estimate (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
6772 gds .algoName .stats .estimate (G , dampingFactor = 0.2 , tolerance = 0.3 )
6873
6974 assert runner .last_query () == "CALL gds.algoName.stats.estimate($graph_name, $config)"
75+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
7076 assert runner .last_params () == {
7177 "graph_name" : GRAPH_NAME ,
72- "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 },
78+ "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
7379 }
7480
7581
7682def test_simple_stream_estimate (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
7783 gds .algoName .stream .estimate (G , dampingFactor = 0.2 , tolerance = 0.3 )
7884
7985 assert runner .last_query () == "CALL gds.algoName.stream.estimate($graph_name, $config)"
86+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
8087 assert runner .last_params () == {
8188 "graph_name" : GRAPH_NAME ,
82- "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 },
89+ "config" : {"dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
8390 }
8491
8592
8693def test_simple_write_estimate (runner : CollectingQueryRunner , gds : GraphDataScience , G : Graph ) -> None :
8794 gds .algoName .write .estimate (G , writeProperty = "rank" , dampingFactor = 0.2 , tolerance = 0.3 )
8895
8996 assert runner .last_query () == "CALL gds.algoName.write.estimate($graph_name, $config)"
97+ jobId = runner .last_params ().get ("config" , {}).get ("jobId" , "" )
9098 assert runner .last_params () == {
9199 "graph_name" : GRAPH_NAME ,
92- "config" : {"writeProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 },
100+ "config" : {"writeProperty" : "rank" , "dampingFactor" : 0.2 , "tolerance" : 0.3 , "jobId" : jobId },
93101 }
0 commit comments