File tree Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -56,20 +56,3 @@ def test_admin_change_app(self):
5656
5757 self .assertEqual (response .status_code , 200 )
5858 self .assertContains (response , "Hidden" )
59-
60-
61- class APICategoriesEndpoint (APIAuthenticatedTestCase ):
62-
63- def test_get_view_authorized (self ):
64-
65- response = self .client .get (reverse ("test-view" ), ** self .header )
66-
67- self .assertEqual (response .status_code , 200 )
68- self .assertEqual (response .data ["msg" ], "Hello World!" )
69-
70- def test_get_view_unauthorized (self ):
71-
72- response = self .client .get (reverse ("test-view" ))
73-
74- self .assertEqual (response .status_code , 403 )
75- self .assertEqual (response .data ["detail" ], "Authentication credentials were not provided." )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ from django .core .urlresolvers import reverse
2+ from tests .test_admin import APIAuthenticatedTestCase
3+
4+
5+ class APICategoriesEndpoint (APIAuthenticatedTestCase ):
6+
7+ def test_get_view_authorized (self ):
8+
9+ response = self .client .get (reverse ("test-view" ), ** self .header )
10+
11+ self .assertEqual (response .status_code , 200 )
12+ self .assertEqual (response .data ["msg" ], "Hello World!" )
13+
14+ def test_get_view_unauthorized (self ):
15+
16+ response = self .client .get (reverse ("test-view" ))
17+
18+ self .assertEqual (response .status_code , 403 )
19+ self .assertEqual (response .data ["detail" ], "Authentication credentials were not provided." )
You can’t perform that action at this time.
0 commit comments