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.
2 parents a4a4a91 + 6f75b39 commit c11620eCopy full SHA for c11620e
rest_api/tests.py
@@ -54,7 +54,7 @@ def test_authorization_is_enforced(self):
54
"""Test that the api has user authorization."""
55
new_client = APIClient()
56
res = new_client.get('/bucketlists/', kwargs={'pk': 3}, format="json")
57
- self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
+ self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)
58
59
def test_api_can_get_a_bucketlist(self):
60
"""Test the api can get a given bucketlist."""
0 commit comments