From 3f4eaa667a296a0e437b3da8a5a5bfa9b7500aa8 Mon Sep 17 00:00:00 2001 From: Viktor Bozhinov Date: Thu, 9 Dec 2021 16:03:47 +0000 Subject: [PATCH] test: add limit and skip inside scope filter cases #259 --- .../test_search_api_query_filter_factory.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/search_api/test_search_api_query_filter_factory.py b/test/search_api/test_search_api_query_filter_factory.py index 683c6a44..742d5d52 100644 --- a/test/search_api/test_search_api_query_filter_factory.py +++ b/test/search_api/test_search_api_query_filter_factory.py @@ -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):