Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaysoni committed Nov 27, 2019
1 parent 9bf6e64 commit d2c77f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d2c77f3

Please sign in to comment.