@@ -466,6 +466,7 @@ def test_trigger_coding_agent_handoff_success(
466466 result = trigger_coding_agent_handoff (
467467 group = self .group ,
468468 run_id = 123 ,
469+ referrer = AutofixReferrer .UNKNOWN ,
469470 integration_id = 456 ,
470471 )
471472
@@ -491,6 +492,7 @@ def test_trigger_coding_agent_handoff_no_repos(self, mock_client_class, mock_get
491492 result = trigger_coding_agent_handoff (
492493 group = self .group ,
493494 run_id = 123 ,
495+ referrer = AutofixReferrer .UNKNOWN ,
494496 integration_id = 456 ,
495497 )
496498
@@ -531,6 +533,7 @@ def test_trigger_coding_agent_handoff_generates_prompt_from_artifacts(
531533 trigger_coding_agent_handoff (
532534 group = self .group ,
533535 run_id = 123 ,
536+ referrer = AutofixReferrer .UNKNOWN ,
534537 integration_id = 456 ,
535538 )
536539
@@ -564,6 +567,7 @@ def test_trigger_coding_agent_handoff_uses_group_title_for_branch(
564567 trigger_coding_agent_handoff (
565568 group = self .group ,
566569 run_id = 123 ,
570+ referrer = AutofixReferrer .UNKNOWN ,
567571 integration_id = 456 ,
568572 )
569573
@@ -592,6 +596,7 @@ def test_trigger_coding_agent_handoff_fetches_auto_create_pr_from_preferences(
592596 trigger_coding_agent_handoff (
593597 group = self .group ,
594598 run_id = 123 ,
599+ referrer = AutofixReferrer .UNKNOWN ,
595600 integration_id = 456 ,
596601 )
597602
@@ -619,6 +624,7 @@ def test_trigger_coding_agent_handoff_defaults_auto_create_pr_false(
619624 trigger_coding_agent_handoff (
620625 group = self .group ,
621626 run_id = 123 ,
627+ referrer = AutofixReferrer .UNKNOWN ,
622628 integration_id = 456 ,
623629 )
624630
@@ -638,6 +644,7 @@ def test_trigger_coding_agent_handoff_no_preferences_returns_failure(
638644 result = trigger_coding_agent_handoff (
639645 group = self .group ,
640646 run_id = 123 ,
647+ referrer = AutofixReferrer .UNKNOWN ,
641648 integration_id = 456 ,
642649 )
643650
@@ -678,7 +685,12 @@ def test_trigger_coding_agent_handoff_filters_to_relevant_repo(
678685 )
679686 mock_get_autofix_state .return_value = None
680687
681- trigger_coding_agent_handoff (group = self .group , run_id = 123 , integration_id = 456 )
688+ trigger_coding_agent_handoff (
689+ group = self .group ,
690+ run_id = 123 ,
691+ referrer = AutofixReferrer .UNKNOWN ,
692+ integration_id = 456 ,
693+ )
682694
683695 repos = mock_client .launch_coding_agents .call_args .kwargs ["repos" ]
684696 assert len (repos ) == 1
@@ -712,7 +724,12 @@ def test_trigger_coding_agent_handoff_falls_back_to_first_repo_when_no_relevant_
712724 )
713725 mock_get_autofix_state .return_value = None
714726
715- trigger_coding_agent_handoff (group = self .group , run_id = 123 , integration_id = 456 )
727+ trigger_coding_agent_handoff (
728+ group = self .group ,
729+ run_id = 123 ,
730+ referrer = AutofixReferrer .UNKNOWN ,
731+ integration_id = 456 ,
732+ )
716733
717734 repos = mock_client .launch_coding_agents .call_args .kwargs ["repos" ]
718735 assert len (repos ) == 1
@@ -760,7 +777,12 @@ def test_trigger_coding_agent_handoff_falls_back_when_relevant_repo_doesnt_match
760777 )
761778 mock_get_autofix_state .return_value = None
762779
763- trigger_coding_agent_handoff (group = self .group , run_id = 123 , integration_id = 456 )
780+ trigger_coding_agent_handoff (
781+ group = self .group ,
782+ run_id = 123 ,
783+ referrer = AutofixReferrer .UNKNOWN ,
784+ integration_id = 456 ,
785+ )
764786
765787 repos = mock_client .launch_coding_agents .call_args .kwargs ["repos" ]
766788 assert len (repos ) == 1
@@ -822,7 +844,12 @@ def test_trigger_coding_agent_handoff_enriches_branch_name_from_autofix_state(
822844 status = AutofixStatus .COMPLETED ,
823845 )
824846
825- trigger_coding_agent_handoff (group = self .group , run_id = 123 , integration_id = 456 )
847+ trigger_coding_agent_handoff (
848+ group = self .group ,
849+ run_id = 123 ,
850+ referrer = AutofixReferrer .UNKNOWN ,
851+ integration_id = 456 ,
852+ )
826853
827854 repos = mock_client .launch_coding_agents .call_args .kwargs ["repos" ]
828855 assert repos [0 ].branch_name == "main"
@@ -852,7 +879,12 @@ def test_trigger_coding_agent_handoff_keeps_branch_name_from_preferences_when_se
852879 ]
853880 )
854881
855- trigger_coding_agent_handoff (group = self .group , run_id = 123 , integration_id = 456 )
882+ trigger_coding_agent_handoff (
883+ group = self .group ,
884+ run_id = 123 ,
885+ referrer = AutofixReferrer .UNKNOWN ,
886+ integration_id = 456 ,
887+ )
856888
857889 mock_get_autofix_state .assert_not_called ()
858890 repos = mock_client .launch_coding_agents .call_args .kwargs ["repos" ]
0 commit comments