Skip to content

Commit

Permalink
fix: debug await expression slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
SepehrBazyar committed Aug 26, 2022
1 parent 65846e8 commit b195662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_queries/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,16 @@ async def test_slice_getitem_queryset_on_proxy():
c = await Car(name=f"{i}").save()
await user.cars.add(c)

await user.cars[:5]
user.cars[:5]
assert len(user.cars) == 5
assert user.cars[0].name == "0"
assert user.cars[4].name == "4"

await user.cars[5:10]
user.cars[5:10]
assert len(user.cars) == 5
assert user.cars[0].name == "5"
assert user.cars[4].name == "9"

await user.cars[10:]
user.cars[10:]
assert len(user.cars) == 10
assert user.cars[0].name == "10"

0 comments on commit b195662

Please sign in to comment.