@@ -93,10 +93,9 @@ def test_no_notification_for_withdrawn_patches(alice, in_progress_cf, open_cf, t
9393 status = PatchOnCommitFest .STATUS_WITHDRAWN ,
9494 )
9595
96- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
97- in_progress_cf .send_closure_notifications (moved_patch_ids )
96+ in_progress_cf .auto_move_active_patches ()
97+ in_progress_cf .send_closure_notifications ()
9898
99- assert patch .id not in moved_patch_ids
10099 assert QueuedMail .objects .count () == 0
101100
102101
@@ -261,8 +260,8 @@ def test_auto_move_patch_with_recent_email_activity(
261260 status = PatchOnCommitFest .STATUS_REVIEW ,
262261 )
263262
264- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
265- in_progress_cf .send_closure_notifications (moved_patch_ids )
263+ in_progress_cf .auto_move_active_patches ()
264+ in_progress_cf .send_closure_notifications ()
266265
267266 # Patch should be moved
268267 patch .refresh_from_db ()
@@ -298,8 +297,8 @@ def test_no_auto_move_without_email_activity(alice, in_progress_cf, open_cf, top
298297 status = PatchOnCommitFest .STATUS_REVIEW ,
299298 )
300299
301- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
302- in_progress_cf .send_closure_notifications (moved_patch_ids )
300+ in_progress_cf .auto_move_active_patches ()
301+ in_progress_cf .send_closure_notifications ()
303302
304303 # Patch should NOT be moved
305304 patch .refresh_from_db ()
@@ -339,8 +338,8 @@ def test_no_auto_move_when_failing_too_long(alice, in_progress_cf, open_cf, topi
339338 - timedelta (days = settings .AUTO_MOVE_MAX_FAILING_DAYS + 10 ),
340339 )
341340
342- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
343- in_progress_cf .send_closure_notifications (moved_patch_ids )
341+ in_progress_cf .auto_move_active_patches ()
342+ in_progress_cf .send_closure_notifications ()
344343
345344 # Patch should NOT be moved
346345 patch .refresh_from_db ()
@@ -373,8 +372,8 @@ def test_auto_move_when_failing_within_threshold(alice, in_progress_cf, open_cf,
373372 - timedelta (days = settings .AUTO_MOVE_MAX_FAILING_DAYS - 5 ),
374373 )
375374
376- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
377- in_progress_cf .send_closure_notifications (moved_patch_ids )
375+ in_progress_cf .auto_move_active_patches ()
376+ in_progress_cf .send_closure_notifications ()
378377
379378 # Patch should be moved (failure is recent enough)
380379 patch .refresh_from_db ()
@@ -399,9 +398,8 @@ def test_no_auto_move_with_null_lastmail(alice, in_progress_cf, open_cf, topic):
399398 status = PatchOnCommitFest .STATUS_REVIEW ,
400399 )
401400
402- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
401+ in_progress_cf .auto_move_active_patches ()
403402
404- assert patch .id not in moved_patch_ids
405403 patch .refresh_from_db ()
406404 assert patch .current_commitfest ().id == in_progress_cf .id
407405
@@ -423,10 +421,9 @@ def test_auto_move_patch_without_cfbot_branch(alice, in_progress_cf, open_cf, to
423421
424422 # No CfbotBranch created - CI never ran
425423
426- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
427- in_progress_cf .send_closure_notifications (moved_patch_ids )
424+ in_progress_cf .auto_move_active_patches ()
425+ in_progress_cf .send_closure_notifications ()
428426
429- assert patch .id in moved_patch_ids
430427 patch .refresh_from_db ()
431428 assert patch .current_commitfest ().id == open_cf .id
432429
@@ -466,10 +463,9 @@ def test_regular_cf_does_not_move_to_draft_cf(alice, in_progress_cf, topic):
466463 status = PatchOnCommitFest .STATUS_REVIEW ,
467464 )
468465
469- moved_patch_ids = in_progress_cf .auto_move_active_patches ()
466+ in_progress_cf .auto_move_active_patches ()
470467
471468 # Should be moved to regular CF, not draft CF
472- assert patch .id in moved_patch_ids
473469 patch .refresh_from_db ()
474470 assert patch .current_commitfest ().id == regular_cf .id
475471 assert patch .current_commitfest ().id != draft_cf .id
@@ -507,8 +503,8 @@ def test_draft_cf_moves_active_patches_to_next_draft(alice, bob, topic):
507503 status = PatchOnCommitFest .STATUS_REVIEW ,
508504 )
509505
510- moved_patch_ids = closing_draft_cf .auto_move_active_patches ()
511- closing_draft_cf .send_closure_notifications (moved_patch_ids )
506+ closing_draft_cf .auto_move_active_patches ()
507+ closing_draft_cf .send_closure_notifications ()
512508
513509 # Patch should be moved to the next draft CF
514510 patch .refresh_from_db ()
0 commit comments