Skip to content

Commit

Permalink
More pagination query op test bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Apr 13, 2022
1 parent 082068a commit bf6125a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api/test_query_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def test_pagination_functionality():
}

with pytest.raises(HTTPException):
op.query(_limit=10000, _skip=100)
op.query(_limit=10000, _skip=100, _page=None, _per_page=None)

with pytest.raises(HTTPException):
op.query(_limit=-1, _skip=100)
op.query(_limit=-1, _skip=100, _page=None, _per_page=None)

with pytest.raises(HTTPException):
op.query(_page=-1, _per_page=100)
op.query(_page=-1, _per_page=100, _skip=None, _limit=None)


def test_pagination_serialization():
Expand Down

0 comments on commit bf6125a

Please sign in to comment.