diff --git a/tests/test_hash_model.py b/tests/test_hash_model.py index 021d80e4..9b8b9ee9 100644 --- a/tests/test_hash_model.py +++ b/tests/test_hash_model.py @@ -95,16 +95,18 @@ async def members(m): yield member1, member2, member3 + @py_test_mark_asyncio async def test_count_query(members, m): count = await m.Member.find((m.Member.first_name == "Brookins") & (m.Member.last_name == "Brookins")).count() assert count == 1 - count = await m.Member.find(m.Member.first_name="Kim").count() + count = await m.Member.find(m.Member.first_name == "Kim").count() assert count == 1 count = await m.Member.find().count() assert count == 3 + @py_test_mark_asyncio async def test_exact_match_queries(members, m): member1, member2, member3 = members