mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Fix test_get_instance_view_filters_out_name_with_filter_backend response message check
This commit is contained in:
parent
1d48aaa8b9
commit
9c7d5c265a
|
@ -522,7 +522,8 @@ class TestFilterBackendAppliedToViews(TestCase):
|
|||
request = factory.get('/1')
|
||||
response = instance_view(request, pk=1).render()
|
||||
assert response.status_code == status.HTTP_404_NOT_FOUND
|
||||
assert response.data == {'detail': 'Not found.'}
|
||||
assert (response.data == {'detail': 'Not found.'} or
|
||||
response.data == {'detail': 'No BasicModel matches the given query.'})
|
||||
|
||||
def test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user