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 Feb 26, 2022
1 parent cdf1d20 commit c0e07a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions document_ai/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 c0e07a6

Please sign in to comment.