Skip to content

Commit

Permalink
test: update test to pass in TextRegions instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
badGarnet committed Oct 16, 2024
1 parent 963611c commit 87278a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_unstructured/partition/pdf_image/test_inference_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unstructured_inference.inference.elements import TextRegion
from unstructured_inference.inference.elements import TextRegion, TextRegions
from unstructured_inference.inference.layoutelement import LayoutElement

from unstructured.documents.elements import ElementType
Expand All @@ -17,7 +17,7 @@ def test_merge_text_regions(mock_embedded_text_regions):
text="LayoutParser: A Unified Toolkit for Deep Learning Based Document Image",
)

merged_text_region = merge_text_regions(mock_embedded_text_regions)
merged_text_region = merge_text_regions(TextRegions.from_list(mock_embedded_text_regions))
assert merged_text_region == expected


Expand Down

0 comments on commit 87278a9

Please sign in to comment.