haystack/test/test_document.py
Malte Pietsch 9727829cc6
Rename and restructure modules (database, indexing, schemas) (#379)
* rename database to documentstore

* move document, label, multilabel to haystack/schema.py

* rename documentstore -> document_store

* split indexing modules -> file_converter + preprocessor

* fix order of imports

* Update tutorial notebooks

* fix torch version in tutorial 4
2020-09-16 18:33:23 +02:00

7 lines
127 B
Python

from haystack import Document
def test_document_data_access():
doc = Document(text="test")
assert doc.text == "test"