1212
1313
1414@pytest .mark .parametrize (
15- ("fixture" , "main_file" , "pr_file" , "batches" , "expected_packages" , "expected_missing" , "expected_new" ),
15+ (
16+ "fixture" ,
17+ "main_file" ,
18+ "pr_file" ,
19+ "batches" ,
20+ "expected_packages" ,
21+ "expected_missing" ,
22+ "expected_new" ,
23+ ),
1624 [
1725 pytest .param (
18- "both_empty" , "main.json" , "pr.json" , None , [], [], [],
26+ "both_empty" ,
27+ "main.json" ,
28+ "pr.json" ,
29+ None ,
30+ [],
31+ [],
32+ [],
1933 id = "both_empty" ,
2034 ),
2135 pytest .param (
22- "no_change" , "main.json" , "pr.json" , None , [], [], [],
36+ "no_change" ,
37+ "main.json" ,
38+ "pr.json" ,
39+ None ,
40+ [],
41+ [],
42+ [],
2343 id = "no_change" ,
2444 ),
2545 pytest .param (
26- "new_message" , "main.json" , "pr.json" , None ,
27- ["astroid" ], [0 ], [1 ],
46+ "new_message" ,
47+ "main.json" ,
48+ "pr.json" ,
49+ None ,
50+ ["astroid" ],
51+ [0 ],
52+ [1 ],
2853 id = "new_message" ,
2954 ),
3055 pytest .param (
31- "removed_message" , "main.json" , "pr.json" , None ,
32- ["astroid" ], [1 ], [0 ],
56+ "removed_message" ,
57+ "main.json" ,
58+ "pr.json" ,
59+ None ,
60+ ["astroid" ],
61+ [1 ],
62+ [0 ],
3363 id = "removed_message" ,
3464 ),
3565 pytest .param (
36- "message_changed" , "main.json" , "pr.json" , None ,
37- ["astroid" ], [1 ], [1 ],
66+ "message_changed" ,
67+ "main.json" ,
68+ "pr.json" ,
69+ None ,
70+ ["astroid" ],
71+ [1 ],
72+ [1 ],
3873 id = "message_changed" ,
3974 ),
4075 pytest .param (
41- "batched" , "main_BATCHIDX.json" , "pr_BATCHIDX.json" , 2 ,
42- ["astroid" ], [2 ], [0 ],
76+ "batched" ,
77+ "main_BATCHIDX.json" ,
78+ "pr_BATCHIDX.json" ,
79+ 2 ,
80+ ["astroid" ],
81+ [2 ],
82+ [0 ],
4383 id = "batched" ,
4484 ),
4585 ],
@@ -54,7 +94,9 @@ def test_comparator(
5494 expected_new : list [int ],
5595) -> None :
5696 directory = FIXTURES_PATH / fixture
57- comparator = Comparator (str (directory / main_file ), str (directory / pr_file ), batches )
97+ comparator = Comparator (
98+ str (directory / main_file ), str (directory / pr_file ), batches
99+ )
58100 results = list (comparator )
59101 assert len (results ) == len (expected_packages )
60102 for (package , missing , new ), exp_pkg , exp_miss , exp_new in zip (
0 commit comments