From d2c77f307788899eb562d3cb6e42c69b968b9f2a Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Wed, 27 Nov 2019 19:34:10 +0100 Subject: [PATCH] Fix test --- test/test_db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_db.py b/test/test_db.py index 6451554a5c..24bbd5fcf2 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