File tree Expand file tree Collapse file tree
src/tests/ContentProcessorWorkflow/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,31 +226,31 @@ def test_log_error_with_context_basic(self):
226226 logger .error .assert_called_once ()
227227 call_args = str (logger .error .call_args )
228228 assert "TestOperation" in call_args or "ValueError" in call_args
229-
229+
230230 def test_log_error_with_context_and_kwargs (self ):
231231 """Test logging error with additional context"""
232232 logger = Mock ()
233233 exception = RuntimeError ("Processing failed" )
234-
234+
235235 log_error_with_context (
236- logger ,
237- exception ,
236+ logger ,
237+ exception ,
238238 context = "DataProcessing" ,
239239 user_id = "user123" ,
240240 request_id = "req456"
241241 )
242-
242+
243243 logger .error .assert_called_once ()
244-
244+
245245 def test_log_error_with_http_response_error (self ):
246246 """Test logging HttpResponseError with context"""
247247 logger = Mock ()
248248 response = Mock ()
249249 response .status_code = 500
250-
250+
251251 error = HttpResponseError (message = "Server error" , response = response )
252252 error .status_code = 500
253-
253+
254254 log_error_with_context (logger , error , context = "APICall" )
255-
255+
256256 logger .error .assert_called_once ()
You can’t perform that action at this time.
0 commit comments