mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-10-29 08:49:07 +00:00
fix test
This commit is contained in:
parent
d564026a57
commit
8a48cd7dd6
@ -7,4 +7,5 @@ def test_db_write_read():
|
||||
write_documents_to_db(datastore=sql_datastore, document_dir="samples/docs")
|
||||
documents = sql_datastore.get_all_documents()
|
||||
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.'
|
||||
doc = sql_datastore.get_document_by_id("1")
|
||||
assert doc["text"] == 'A Doc specifically talking about haystack.\nHaystack can be used to scale QA models to large document collections.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user