@@ -960,14 +960,14 @@ def setUp(self) -> None:
960960 event_data = load_data ("python" )
961961 self .event = self .store_event (data = event_data , project_id = self .project .id )
962962
963- @patch ("sentry.seer.autofix.issue_summary.trigger_lightweight_rca " )
963+ @patch ("sentry.seer.autofix.issue_summary.trigger_explorer_lightweight_rca " )
964964 @patch ("sentry.seer.autofix.issue_summary.trigger_autofix_explorer" , return_value = 42 )
965965 def test_lightweight_rca_called_on_explorer_path (
966966 self ,
967967 mock_explorer ,
968- mock_lightweight_rca ,
968+ mock_explorer_lightweight_rca ,
969969 ):
970- """trigger_lightweight_rca is called when the explorer path is taken"""
970+ """trigger_explorer_lightweight_rca is called when the explorer path is taken"""
971971 _trigger_autofix_task (
972972 group_id = self .group .id ,
973973 event_id = self .event .event_id ,
@@ -976,18 +976,18 @@ def test_lightweight_rca_called_on_explorer_path(
976976 )
977977
978978 mock_explorer .assert_called_once ()
979- mock_lightweight_rca .assert_called_once_with (self .group )
979+ mock_explorer_lightweight_rca .assert_called_once_with (self .group )
980980
981- @patch ("sentry.seer.autofix.issue_summary.trigger_lightweight_rca " )
981+ @patch ("sentry.seer.autofix.issue_summary.trigger_explorer_lightweight_rca " )
982982 @patch (
983983 "sentry.seer.autofix.issue_summary.trigger_autofix" , return_value = Mock (data = {"run_id" : 42 })
984984 )
985985 def test_lightweight_rca_not_called_on_legacy_path (
986986 self ,
987987 mock_autofix ,
988- mock_lightweight_rca ,
988+ mock_explorer_lightweight_rca ,
989989 ):
990- """trigger_lightweight_rca is NOT called on the legacy autofix path"""
990+ """trigger_explorer_lightweight_rca is NOT called on the legacy autofix path"""
991991 with self .feature (
992992 {
993993 "organizations:seer-explorer" : False ,
@@ -1002,17 +1002,17 @@ def test_lightweight_rca_not_called_on_legacy_path(
10021002 )
10031003
10041004 mock_autofix .assert_called_once ()
1005- mock_lightweight_rca .assert_not_called ()
1005+ mock_explorer_lightweight_rca .assert_not_called ()
10061006
1007- @patch ("sentry.seer.autofix.issue_summary.trigger_lightweight_rca " )
1007+ @patch ("sentry.seer.autofix.issue_summary.trigger_explorer_lightweight_rca " )
10081008 @patch ("sentry.seer.autofix.issue_summary.trigger_autofix_explorer" , return_value = 42 )
10091009 def test_lightweight_rca_failure_does_not_block_explorer (
10101010 self ,
10111011 mock_explorer ,
1012- mock_lightweight_rca ,
1012+ mock_explorer_lightweight_rca ,
10131013 ):
1014- """Failure in trigger_lightweight_rca doesn't prevent the explorer autofix from completing"""
1015- mock_lightweight_rca .side_effect = Exception ("lightweight RCA failed" )
1014+ """Failure in trigger_explorer_lightweight_rca doesn't prevent the explorer autofix from completing"""
1015+ mock_explorer_lightweight_rca .side_effect = Exception ("lightweight RCA failed" )
10161016
10171017 _trigger_autofix_task (
10181018 group_id = self .group .id ,
@@ -1022,7 +1022,7 @@ def test_lightweight_rca_failure_does_not_block_explorer(
10221022 )
10231023
10241024 mock_explorer .assert_called_once ()
1025- mock_lightweight_rca .assert_called_once_with (self .group )
1025+ mock_explorer_lightweight_rca .assert_called_once_with (self .group )
10261026
10271027
10281028class TestFetchUserPreference :
0 commit comments