fix: better differentiation between UNAUTHORIZED and FORBIDDEN (#3139)
This commit is contained in:
parent
6a9089fd98
commit
3529f9152f
7 changed files with 39 additions and 45 deletions
|
|
@ -7,7 +7,7 @@ from lnbits.settings import Settings
|
|||
@pytest.mark.anyio
|
||||
async def test_admin_get_settings_permission_denied(client, from_user):
|
||||
response = await client.get(f"/admin/api/v1/settings?usr={from_user.id}")
|
||||
assert response.status_code == 401
|
||||
assert response.status_code == 403
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue