Skip to content

Commit

Permalink
Add additional test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
holtskinner committed Oct 23, 2023
1 parent f3b7434 commit cc3556a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/test_page.py
Expand Up @@ -262,8 +262,14 @@ def test_page_elements_large_document(large_docproto):
wrapped_page = page.Page(
documentai_object=pg, document_text=large_docproto.text
)
for block in wrapped_page.blocks:
assert block.text != ""
for paragraph in wrapped_page.paragraphs:
assert paragraph.text != ""
for line in wrapped_page.lines:
assert line.text != ""
for token in wrapped_page.tokens:
assert token.text != ""


def test_Line(docproto):
Expand Down

0 comments on commit cc3556a

Please sign in to comment.