We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c81e65 commit 6b01b47Copy full SHA for 6b01b47
tests/test_authentication.py
@@ -62,6 +62,7 @@ def test_post_form_passing_jwt_auth(self):
62
'/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
63
64
self.assertEqual(response.status_code, status.HTTP_200_OK)
65
+ self.assertEqual(response.content, b'mockview-post')
66
67
def test_post_json_passing_jwt_auth(self):
68
"""
tests/urls.py
@@ -18,10 +18,10 @@ class MockView(APIView):
18
permission_classes = (permissions.IsAuthenticated,)
19
20
def get(self, request):
21
- return HttpResponse({'a': 1, 'b': 2, 'c': 3})
+ return HttpResponse('mockview-get')
22
23
def post(self, request):
24
+ return HttpResponse('mockview-post')
25
26
27
urlpatterns = [
0 commit comments