mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
fix test_search_field_with_breaking_params
This commit is contained in:
parent
7480bdcf35
commit
8bf0cb2dc5
|
@ -189,7 +189,7 @@ class SearchFilterTests(TestCase):
|
|||
filter_backends = (filters.SearchFilter,)
|
||||
search_fields = ('title', 'text')
|
||||
|
||||
payload = {'search': 'ijk'}
|
||||
payload = {'invalid-search-param': 'ijk'}
|
||||
view = SearchListViewSet.as_view({'get': 'list'})
|
||||
request = factory.get('/', payload)
|
||||
response = view(request)
|
||||
|
|
Loading…
Reference in New Issue
Block a user