Skip to content

Commit a108244

Browse files
busunkim96dandhlee
authored andcommitted
test: strip quotes and newlines from output (#279)
1 parent 6f3cbee commit a108244

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

documentai/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)