@@ -14,7 +14,6 @@ def setUp(self) -> None:
1414 self .group = self .create_group (project = self .project )
1515
1616 def test_build_trigger_action_task_params_basic (self ) -> None :
17- """Test basic parameter building without workflow_uuid_map"""
1817 mock_group_event = Mock (spec = GroupEvent )
1918 mock_group_event .event_id = "event-123"
2019 mock_group_event .occurrence_id = "occurrence-456"
@@ -26,7 +25,7 @@ def test_build_trigger_action_task_params_basic(self) -> None:
2625 # Annotate workflow_id on action as the queryset would
2726 setattr (action , "workflow_id" , 42 )
2827
29- params = build_trigger_action_task_params (action , event_data )
28+ params = build_trigger_action_task_params (action , event_data , {} )
3029
3130 assert params ["action_id" ] == 1
3231 assert params ["workflow_id" ] == 42
@@ -36,7 +35,6 @@ def test_build_trigger_action_task_params_basic(self) -> None:
3635 assert "notification_uuid" not in params
3736
3837 def test_build_trigger_action_task_params_with_workflow_uuid_map (self ) -> None :
39- """Test that notification_uuid is added when workflow_id is in workflow_uuid_map"""
4038 mock_group_event = Mock (spec = GroupEvent )
4139 mock_group_event .event_id = "event-123"
4240 mock_group_event .occurrence_id = "occurrence-456"
@@ -58,7 +56,6 @@ def test_build_trigger_action_task_params_with_workflow_uuid_map(self) -> None:
5856 assert params ["notification_uuid" ] == expected_notification_uuid
5957
6058 def test_build_trigger_action_task_params_workflow_not_in_map (self ) -> None :
61- """Test that notification_uuid is not added when workflow_id is not in workflow_uuid_map"""
6259 mock_group_event = Mock (spec = GroupEvent )
6360 mock_group_event .event_id = "event-123"
6461 mock_group_event .occurrence_id = "occurrence-456"
@@ -80,7 +77,6 @@ def test_build_trigger_action_task_params_workflow_not_in_map(self) -> None:
8077 assert "notification_uuid" not in params
8178
8279 def test_build_trigger_action_task_params_no_workflow_id (self ) -> None :
83- """Test that notification_uuid is not added when action has no workflow_id"""
8480 mock_group_event = Mock (spec = GroupEvent )
8581 mock_group_event .event_id = "event-123"
8682 mock_group_event .occurrence_id = "occurrence-456"
0 commit comments