Skip to content

Commit

Permalink
fix: rest_framework.authtoken in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 28, 2024
1 parent 31277c2 commit 8ddfbed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uniticket/api_rest/tests/test_01_basic_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_strutture_list(self):

# no auth
res = req.get(url)
self.assertEqual(res.status_code, 401)
self.assertEqual(res.status_code, 403)

# auth
res = req.get(url, **self.at.as_http_header)
Expand All @@ -140,7 +140,7 @@ def test_category_list(self):

# no auth
res = req.get(url)
self.assertEqual(res.status_code, 401)
self.assertEqual(res.status_code, 403)

# auth
res = req.get(url, **self.at.as_http_header)
Expand All @@ -159,7 +159,7 @@ def test_new_ticket(self):

# no auth
res = req.get(url)
self.assertEqual(res.status_code, 401)
self.assertEqual(res.status_code, 403)

# auth - GET
res = req.get(url, **self.at.as_http_header)
Expand Down
1 change: 1 addition & 0 deletions uniticket/tests/settingslocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

# Django Rest
'rest_framework',
# 'rest_framework.authtoken',
'api_rest',

# Django channels and chat
Expand Down
1 change: 1 addition & 0 deletions uniticket/uni_ticket_project/settingslocal.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ INSTALLED_APPS = [

# Django Rest
'rest_framework',
# 'rest_framework.authtoken',
'api_rest',

# Django channels and chat
Expand Down

0 comments on commit 8ddfbed

Please sign in to comment.