mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
Fix test
This commit is contained in:
parent
9bf6e64529
commit
d2c77f3077
@ -8,7 +8,6 @@ def test_db_write_read():
|
||||
db.create_all()
|
||||
|
||||
write_documents_to_db(document_dir="samples/docs")
|
||||
documents = db.session.query(Document).all()
|
||||
documents = db.session.query(Document).order_by(Document.text).all()
|
||||
assert len(documents) == 2
|
||||
assert documents[0].text == 'A Doc specifically talking about haystack.\nHaystack can be used to scale QA models to large document collections.'
|
||||
print(documents)
|
||||
Loading…
x
Reference in New Issue
Block a user