@@ -259,7 +259,7 @@ def test_process_with_pdf_files(self, mock_print, mock_walk):
259259 with patch ('grobid_client.grobid_client.GrobidClient._test_server_connection' ):
260260 with patch ('grobid_client.grobid_client.GrobidClient._configure_logging' ):
261261 with patch ('grobid_client.grobid_client.GrobidClient.process_batch' ) as mock_batch :
262- mock_batch .return_value = (2 , 0 ) # Return tuple as expected
262+ mock_batch .return_value = (2 , 0 , 0 ) # Return tuple as expected (processed, errors, skipped)
263263 client = GrobidClient (check_server = False )
264264 client .logger = Mock ()
265265
@@ -424,7 +424,7 @@ def test_process_batch(self, mock_isfile, mock_executor):
424424 verbose = False
425425 )
426426
427- assert result == (1 , 0 ) # One file processed, zero errors
427+ assert result == (1 , 0 , 0 ) # One file processed, zero errors, zero skipped
428428
429429
430430class TestVerboseParameter :
@@ -508,7 +508,7 @@ def test_process_batch_empty_input_files(self, mock_configure_logging, mock_test
508508 markdown_output = False
509509 )
510510
511- assert result == (0 , 0 ) # No files processed, no errors
511+ assert result == (0 , 0 , 0 ) # No files processed, no errors, no skipped
512512
513513 @patch ('grobid_client.grobid_client.GrobidClient._test_server_connection' )
514514 @patch ('grobid_client.grobid_client.GrobidClient._configure_logging' )
0 commit comments