We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c08c20 commit b528d68Copy full SHA for b528d68
test_unstructured_inference/test_elements.py
@@ -436,3 +436,8 @@ def test_layoutelements_to_list_and_back(test_layoutelements):
436
test_layoutelements.element_class_id_map[idx]
437
for idx in test_layoutelements.element_class_ids
438
] == [back.element_class_id_map[idx] for idx in back.element_class_ids]
439
+
440
+def test_layoutelements_from_list_no_elements():
441
+ back = LayoutElements.from_list(elements=[])
442
+ assert back.source is None
443
0 commit comments