Skip to content

Commit

Permalink
test: check for a different exception for invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed May 24, 2022
1 parent db94b37 commit ab3839a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/search_api/filters/test_search_api_limit_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ def test_valid_limit_value(self, limit_value, search_api_query_document):
],
)
def test_invalid_limit_value(self, limit_value):
with pytest.raises((FilterError, Exception)):
with pytest.raises((FilterError, ValueError)):
SearchAPILimitFilter(limit_value)
2 changes: 1 addition & 1 deletion test/search_api/filters/test_search_api_skip_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ def test_valid_skip_value(self, search_api_query_document, skip_value):
],
)
def test_invalid_skip_value(self, skip_value):
with pytest.raises((FilterError, Exception)):
with pytest.raises((FilterError, ValueError)):
SearchAPISkipFilter(skip_value)

0 comments on commit ab3839a

Please sign in to comment.