Skip to content

Commit c11620e

Browse files
authored
Merge pull request #1 from toanalien/master
HTTP_403_FORBIDDEN
2 parents a4a4a91 + 6f75b39 commit c11620e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_api/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_authorization_is_enforced(self):
5454
"""Test that the api has user authorization."""
5555
new_client = APIClient()
5656
res = new_client.get('/bucketlists/', kwargs={'pk': 3}, format="json")
57-
self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
57+
self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)
5858

5959
def test_api_can_get_a_bucketlist(self):
6060
"""Test the api can get a given bucketlist."""

0 commit comments

Comments
 (0)