@@ -156,7 +156,7 @@ async def test_send_notification_success(self) -> None:
156156 mock_response .status_code = 200
157157 self .mock_httpx_client .post .return_value = mock_response
158158
159- await self .notifier .send_notification (task_data ) # Pass only task_data
159+ await self .notifier .send_notification (task_id , task_data )
160160
161161 self .mock_httpx_client .post .assert_awaited_once ()
162162 called_args , called_kwargs = self .mock_httpx_client .post .call_args
@@ -183,7 +183,7 @@ async def test_send_notification_with_token_success(self) -> None:
183183 mock_response .status_code = 200
184184 self .mock_httpx_client .post .return_value = mock_response
185185
186- await self .notifier .send_notification (task_data ) # Pass only task_data
186+ await self .notifier .send_notification (task_id , task_data )
187187
188188 self .mock_httpx_client .post .assert_awaited_once ()
189189 called_args , called_kwargs = self .mock_httpx_client .post .call_args
@@ -205,7 +205,7 @@ async def test_send_notification_no_config(self) -> None:
205205 task_id = 'task_send_no_config'
206206 task_data = create_sample_task (task_id = task_id )
207207
208- await self .notifier .send_notification (task_data ) # Pass only task_data
208+ await self .notifier .send_notification (task_id , task_data )
209209
210210 self .mock_httpx_client .post .assert_not_called ()
211211
@@ -229,7 +229,7 @@ async def test_send_notification_http_status_error(
229229 self .mock_httpx_client .post .side_effect = http_error
230230
231231 # The method should catch the error and log it, not re-raise
232- await self .notifier .send_notification (task_data ) # Pass only task_data
232+ await self .notifier .send_notification (task_id , task_data )
233233
234234 self .mock_httpx_client .post .assert_awaited_once ()
235235 mock_logger .exception .assert_called_once ()
@@ -251,7 +251,7 @@ async def test_send_notification_request_error(
251251 request_error = httpx .RequestError ('Network issue' , request = MagicMock ())
252252 self .mock_httpx_client .post .side_effect = request_error
253253
254- await self .notifier .send_notification (task_data ) # Pass only task_data
254+ await self .notifier .send_notification (task_id , task_data )
255255
256256 self .mock_httpx_client .post .assert_awaited_once ()
257257 mock_logger .exception .assert_called_once ()
@@ -281,7 +281,7 @@ async def test_send_notification_with_auth(
281281 mock_response .status_code = 200
282282 self .mock_httpx_client .post .return_value = mock_response
283283
284- await self .notifier .send_notification (task_data ) # Pass only task_data
284+ await self .notifier .send_notification (task_id , task_data )
285285
286286 self .mock_httpx_client .post .assert_awaited_once ()
287287 called_args , called_kwargs = self .mock_httpx_client .post .call_args
0 commit comments