mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-03 23:20:35 +00:00
12 lines
303 B
Python
12 lines
303 B
Python
![]() |
from unstructured.documents.elements import Element, NoID, Text
|
||
|
|
||
|
|
||
|
def test_text_id():
|
||
|
text_element = Text(text="hello there!")
|
||
|
assert text_element.id == "c69509590d81db2f37f9d75480c8efed"
|
||
|
|
||
|
|
||
|
def test_element_defaults_to_blank_id():
|
||
|
element = Element()
|
||
|
assert isinstance(element.id, NoID)
|