haystack/test/test_document.py
2020-04-28 16:10:32 +02:00

8 lines
180 B
Python

from haystack.database.base import Document
def test_document_data_access():
doc = Document(id=1, text="test")
assert doc.text == "test"
assert doc['text'] == "test"