We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3e360f commit e5337beCopy full SHA for e5337be
1 file changed
tests/test_posts.py
@@ -25,4 +25,7 @@ def test_get_all_posts(authorized_client, add_fake_posts):
25
assert post.created_at == dbpost.created_at
26
assert post.owner_id == dbpost.owner_id
27
28
-
+def test_unauthorized_get_all_posts(client, add_fake_posts):
29
+ response = client.get('/posts')
30
+ assert response.status_code == 401
31
+
0 commit comments