Skip to content

Commit c0e07a6

Browse files
authored
test: strip quotes and newlines from output (#279)
1 parent cdf1d20 commit c0e07a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

document_ai/snippets/process_document_splitter_sample_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def test_process_documents(capsys):
3333
)
3434
out, _ = capsys.readouterr()
3535

36+
# Remove newlines and quotes from output for easier comparison
37+
out = out.replace(' "" ', " ").replace("\n", "")
38+
3639
expected_strings = [
3740
"Found 8 subdocuments",
3841
"confident that pages 1 to 2 are a subdocument",

0 commit comments

Comments
 (0)