@@ -282,7 +282,6 @@ def test_request_logger_log_outputs():
282
282
283
283
mock_logger .info .assert_called_once ()
284
284
call_args = mock_logger .info .call_args .args
285
- # logger.info(format_string, request_id, stream_info, outputs, output_token_ids, finish_reason)
286
285
assert "Generated response %s%s" in call_args [0 ]
287
286
assert call_args [1 ] == "test-123"
288
287
assert call_args [3 ] == "Hello, world!"
@@ -309,7 +308,6 @@ def test_request_logger_log_outputs_streaming_delta():
309
308
310
309
mock_logger .info .assert_called_once ()
311
310
call_args = mock_logger .info .call_args .args
312
- # logger.info(format_string, request_id, stream_info, outputs, output_token_ids, finish_reason)
313
311
assert "Generated response %s%s" in call_args [0 ]
314
312
assert call_args [1 ] == "test-456"
315
313
assert call_args [2 ] == " (streaming delta)"
@@ -337,7 +335,6 @@ def test_request_logger_log_outputs_streaming_complete():
337
335
338
336
mock_logger .info .assert_called_once ()
339
337
call_args = mock_logger .info .call_args .args
340
- # logger.info(format_string, request_id, stream_info, outputs, output_token_ids, finish_reason)
341
338
assert "Generated response %s%s" in call_args [0 ]
342
339
assert call_args [1 ] == "test-789"
343
340
assert call_args [2 ] == " (streaming complete)"
@@ -400,7 +397,6 @@ def test_request_logger_log_outputs_none_values():
400
397
401
398
mock_logger .info .assert_called_once ()
402
399
call_args = mock_logger .info .call_args .args
403
- # logger.info(format_string, request_id, stream_info, outputs, output_token_ids, finish_reason)
404
400
assert "Generated response %s%s" in call_args [0 ]
405
401
assert call_args [1 ] == "test-none"
406
402
assert call_args [3 ] == "Test output"
@@ -427,7 +423,6 @@ def test_request_logger_log_outputs_empty_output():
427
423
428
424
mock_logger .info .assert_called_once ()
429
425
call_args = mock_logger .info .call_args .args
430
- # logger.info(format_string, request_id, stream_info, outputs, output_token_ids, finish_reason)
431
426
assert "Generated response %s%s" in call_args [0 ]
432
427
assert call_args [1 ] == "test-empty"
433
428
assert call_args [3 ] == ""
@@ -469,17 +464,16 @@ def test_request_logger_log_outputs_integration():
469
464
input_call = mock_logger .info .call_args_list [0 ][0 ]
470
465
output_call = mock_logger .info .call_args_list [1 ][0 ]
471
466
472
- # Check input call: logger.info(format_string, request_id, prompt, params, ...)
473
467
assert "Received request %s" in input_call [0 ]
474
468
assert input_call [1 ] == "test-integration"
475
469
476
- # Check output call: logger.info(format_string, request_id, stream_info, outputs, ...)
477
470
assert "Generated response %s%s" in output_call [0 ]
478
471
assert output_call [1 ] == "test-integration"
479
472
480
473
481
474
def test_streaming_complete_logs_full_text_content ():
482
- """Test that streaming complete logging includes full accumulated text, not just token count."""
475
+ """Test that streaming complete logging includes
476
+ full accumulated text, not just token count."""
483
477
mock_logger = MagicMock ()
484
478
485
479
with patch ("vllm.entrypoints.logger.logger" , mock_logger ):
@@ -502,8 +496,8 @@ def test_streaming_complete_logs_full_text_content():
502
496
# Verify the logged output is the full text, not a token count format
503
497
logged_output = call_args [3 ]
504
498
assert logged_output == full_response
505
- assert "tokens>" not in logged_output # Ensure it's not the old token count format
506
- assert "streaming_complete" not in logged_output # Ensure it's not the fallback format
499
+ assert "tokens>" not in logged_output
500
+ assert "streaming_complete" not in logged_output
507
501
508
502
# Verify other parameters
509
503
assert call_args [1 ] == "test-streaming-full-text"
0 commit comments