Skip to content

Commit d78f827

Browse files
committed
format
1 parent f39b6e9 commit d78f827

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test_unstructured_inference/test_elements.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,18 @@ def test_textregions_allows_for_single_element_access_and_returns_textregion_wit
600600
"""Test that TextRegions allows for single element access and returns a TextRegion with the correct values"""
601601

602602
regions = [
603-
TextRegion.from_coords(0, 0, 10, 10, text="first", source=Source.YOLOX, is_extracted=IsExtracted.TRUE),
604-
TextRegion.from_coords(0, 0, 20, 20, text="second", source=Source.DETECTRON2_ONNX, is_extracted=IsExtracted.PARTIAL),
603+
TextRegion.from_coords(
604+
0, 0, 10, 10, text="first", source=Source.YOLOX, is_extracted=IsExtracted.TRUE
605+
),
606+
TextRegion.from_coords(
607+
0,
608+
0,
609+
20,
610+
20,
611+
text="second",
612+
source=Source.DETECTRON2_ONNX,
613+
is_extracted=IsExtracted.PARTIAL,
614+
),
605615
]
606616
text_regions = TextRegions.from_list(regions)
607617
for i, region in enumerate(regions):

0 commit comments

Comments
 (0)