File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ def test_post_form_passing_jwt_auth(self):
62
62
'/jwt/' , {'example' : 'example' }, HTTP_AUTHORIZATION = auth )
63
63
64
64
self .assertEqual (response .status_code , status .HTTP_200_OK )
65
+ self .assertEqual (response .content , b'mockview-post' )
65
66
66
67
def test_post_json_passing_jwt_auth (self ):
67
68
"""
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ class MockView(APIView):
18
18
permission_classes = (permissions .IsAuthenticated ,)
19
19
20
20
def get (self , request ):
21
- return HttpResponse ({ 'a' : 1 , 'b' : 2 , 'c' : 3 } )
21
+ return HttpResponse ('mockview-get' )
22
22
23
23
def post (self , request ):
24
- return HttpResponse ({ 'a' : 1 , 'b' : 2 , 'c' : 3 } )
24
+ return HttpResponse ('mockview-post' )
25
25
26
26
27
27
urlpatterns = [
You can’t perform that action at this time.
0 commit comments