Update test_generics.py

This commit is contained in:
Tom Christie 2022-10-11 11:52:35 +01:00 committed by GitHub
parent 5e0a31d39b
commit 4774cfef77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,7 +521,11 @@ class TestFilterBackendAppliedToViews(TestCase):
response = instance_view(request, pk=1).render()
assert response.status_code == status.HTTP_404_NOT_FOUND
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):
"""