mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +03:00
Update test_generics.py
This commit is contained in:
parent
5e0a31d39b
commit
4774cfef77
|
@ -521,7 +521,11 @@ class TestFilterBackendAppliedToViews(TestCase):
|
||||||
response = instance_view(request, pk=1).render()
|
response = instance_view(request, pk=1).render()
|
||||||
assert response.status_code == status.HTTP_404_NOT_FOUND
|
assert response.status_code == status.HTTP_404_NOT_FOUND
|
||||||
assert response.data == {
|
assert response.data == {
|
||||||
'detail': ErrorDetail(string='No BasicModel matches the given query.', code='not_found')}
|
'detail': ErrorDetail(
|
||||||
|
string='No BasicModel matches the given query.',
|
||||||
|
code='not_found'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
def test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it(self):
|
def test_get_instance_view_will_return_single_object_when_filter_does_not_exclude_it(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user