Skip to content

Commit

Permalink
test: add limit and skip inside scope filter cases #259
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Bozhinov committed Dec 9, 2021
1 parent bc4d3ba commit 3f4eaa6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/search_api/test_search_api_query_filter_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,24 @@ def test_valid_filter_input_with_all_filters(
},
id="Invalid scope syntax on include filter",
),
pytest.param(
{
"filter": {
"include": [
{"relation": "parameters", "scope": {"limit": 50}},
],
},
},
id="Unsupported limit filter in scope of include filter",
),
pytest.param(
{
"filter": {
"include": [{"relation": "parameters", "scope": {"skip": 20}}],
},
},
id="Unsupported skip filter in scope of include filter",
),
],
)
def test_invalid_filter_input(self, test_request_filter):
Expand Down

0 comments on commit 3f4eaa6

Please sign in to comment.