Fixing some tests

This commit is contained in:
Cyber MacGeddon 2026-03-05 17:49:04 +00:00
parent 8da0229304
commit 8b2455906d

View file

@ -171,7 +171,9 @@ class TestPdfDecoderProcessor(IsolatedAsyncioTestCase):
mock_output_flow.send.assert_called_once()
call_args = mock_output_flow.send.call_args[0][0]
assert call_args.text == "Page with unicode: 你好世界 🌍".encode('utf-8')
# PDF decoder now forwards document_id, chunker fetches content from librarian
assert call_args.document_id == "test-doc/p1"
assert call_args.text == b"" # Content stored in librarian, not inline
@patch('trustgraph.base.flow_processor.FlowProcessor.add_args')
def test_add_args(self, mock_parent_add_args):