Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: wiseaidev <business@wiseai.dev>
  • Loading branch information
wiseaidev committed Aug 10, 2022
1 parent b16c1e0 commit 57d0e5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_hash_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57d0e5a

Please sign in to comment.