@@ -318,27 +318,34 @@ def test_accepted_assigned_unresolved_passes(self):
318318 data = make_trac_json (stage = "Accepted" , status = "assigned" , resolution = None )
319319 self .assertIsNone (check_pr .check_trac_status ("36991" , data ))
320320
321+ def test_ready_for_checkin_assigned_unresolved_passes (self ):
322+ data = make_trac_json (
323+ stage = "Ready for checkin" , status = "assigned" , resolution = None
324+ )
325+ self .assertIsNone (check_pr .check_trac_status ("36991" , data ))
326+
321327 def test_non_accepted_stage_fails (self ):
322- for stage in ["Unreviewed" , "Ready for Checkin" , " Someday/Maybe" ]:
328+ for stage in ["Unreviewed" , "Someday/Maybe" ]:
323329 with self .subTest (stage = stage ):
324330 data = make_trac_json (stage = stage )
325331 self .assertIsNotNone (check_pr .check_trac_status ("36991" , data ))
326332
327333 def test_resolved_ticket_fails (self ):
328- for resolution in [
329- "fixed" ,
330- "wontfix" ,
331- "duplicate" ,
332- "invalid" ,
333- "worksforme" ,
334- "needsinfo" ,
335- "needsnewfeatureprocess" ,
336- ]:
337- with self .subTest (resolution = resolution ):
338- data = make_trac_json (
339- stage = "Accepted" , status = "assigned" , resolution = resolution
340- )
341- self .assertIsNotNone (check_pr .check_trac_status ("36991" , data ))
334+ for stage in ("Accepted" , "Ready for checkin" ):
335+ for resolution in [
336+ "fixed" ,
337+ "wontfix" ,
338+ "duplicate" ,
339+ "invalid" ,
340+ "worksforme" ,
341+ "needsinfo" ,
342+ "needsnewfeatureprocess" ,
343+ ]:
344+ with self .subTest (stage = stage , resolution = resolution ):
345+ data = make_trac_json (
346+ stage = stage , status = "assigned" , resolution = resolution
347+ )
348+ self .assertIsNotNone (check_pr .check_trac_status ("36991" , data ))
342349
343350 def test_unassigned_ticket_fails (self ):
344351 for status in ["new" , "closed" , "" ]:
@@ -743,7 +750,7 @@ def test_no_ticket_results_include_skipped_sentinels(self):
743750 _ , mock_summary , _ = self .call_main (pr_body = body )
744751 _ , results , _ = mock_summary .call_args .args
745752 result_map = {name : result for name , result , _ in results }
746- self .assertIs (result_map ["Trac ticket status is Accepted " ], check_pr .SKIPPED )
753+ self .assertIs (result_map ["Trac ticket is ready for work " ], check_pr .SKIPPED )
747754 self .assertIs (result_map ["Trac ticket has_patch flag set" ], check_pr .SKIPPED )
748755 self .assertIs (result_map ["PR title includes ticket number" ], check_pr .SKIPPED )
749756
@@ -754,7 +761,7 @@ def test_non_accepted_ticket_skips_has_patch(self):
754761 )
755762 _ , results , _ = mock_summary .call_args .args
756763 result_map = {name : result for name , result , _ in results }
757- self .assertIsNotNone (result_map ["Trac ticket status is Accepted " ])
764+ self .assertIsNotNone (result_map ["Trac ticket is ready for work " ])
758765 self .assertIs (result_map ["Trac ticket has_patch flag set" ], check_pr .SKIPPED )
759766
760767 def test_established_author_skips_all_checks (self ):
0 commit comments