diff --git a/test/test_db.py b/test/test_db.py index 6451554a5..24bbd5fcf 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -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) \ No newline at end of file