From 5016f739ddd427e077cf94fdc1fbdb410fd0019d Mon Sep 17 00:00:00 2001 From: Serhii Charykov Date: Wed, 27 Apr 2022 19:42:18 +0300 Subject: [PATCH] Fix ordering in test_full_text_search_queries --- tests/test_hash_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_hash_model.py b/tests/test_hash_model.py index a35409d..f2ac0ef 100644 --- a/tests/test_hash_model.py +++ b/tests/test_hash_model.py @@ -137,7 +137,7 @@ async def test_full_text_search_queries(members, m): assert actual == [member1] - actual = await (m.Member.find(~(m.Member.bio % "anxious")).all()) + actual = await (m.Member.find(~(m.Member.bio % "anxious")).sort_by('age').all()) assert actual == [member1, member3] @@ -433,7 +433,7 @@ async def test_all_pks(m): bio="This is a test user to be deleted.", ) - await member1.save() + await member1.save() pk_list = [] async for pk in await m.Member.all_pks():