File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
backend/app/tests/api/routes Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def test_read_item_not_enough_permissions(
60
60
f"{ settings .API_V1_STR } /items/{ item .id } " ,
61
61
headers = normal_user_token_headers ,
62
62
)
63
- assert response .status_code == 400
63
+ assert response .status_code == 403
64
64
content = response .json ()
65
65
assert content ["detail" ] == "Not enough permissions"
66
66
@@ -121,7 +121,7 @@ def test_update_item_not_enough_permissions(
121
121
headers = normal_user_token_headers ,
122
122
json = data ,
123
123
)
124
- assert response .status_code == 400
124
+ assert response .status_code == 403
125
125
content = response .json ()
126
126
assert content ["detail" ] == "Not enough permissions"
127
127
@@ -159,6 +159,6 @@ def test_delete_item_not_enough_permissions(
159
159
f"{ settings .API_V1_STR } /items/{ item .id } " ,
160
160
headers = normal_user_token_headers ,
161
161
)
162
- assert response .status_code == 400
162
+ assert response .status_code == 403
163
163
content = response .json ()
164
164
assert content ["detail" ] == "Not enough permissions"
You can’t perform that action at this time.
0 commit comments