Skip to content

Commit

Permalink
test: strip quotes and newlines from output (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored and dandhlee committed Jan 5, 2023
1 parent 6f3cbee commit a108244
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions documentai/snippets/process_document_splitter_sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def test_process_documents(capsys):
)
out, _ = capsys.readouterr()

# Remove newlines and quotes from output for easier comparison
out = out.replace(' "" ', " ").replace("\n", "")

expected_strings = [
"Found 8 subdocuments",
"confident that pages 1 to 2 are a subdocument",
Expand Down

0 comments on commit a108244

Please sign in to comment.