Skip to content

Commit efdca3c

Browse files
committed
don't test sort_by with count
1 parent 381ab0e commit efdca3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_hash_model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ async def test_all_query(members, m):
105105
actual_count = await m.Member.find().count()
106106
assert actual_count == len(members)
107107

108-
assert False # pls just fail
109-
110108

111109
@py_test_mark_asyncio
112110
async def test_exact_match_queries(members, m):
@@ -182,9 +180,9 @@ async def test_tag_queries_boolean_logic(members, m):
182180
find_query = m.Member.find(
183181
(m.Member.first_name == "Andrew") & (m.Member.last_name == "Brookins")
184182
| (m.Member.last_name == "Smith")
185-
).sort_by("age")
183+
)
186184

187-
actual = await find_query.all()
185+
actual = await find_query.sort_by("age").all()
188186
assert actual == [member1, member3]
189187

190188
actual_count = await find_query.count()

0 commit comments

Comments
 (0)