mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-26 17:51:53 +01:00
bad request instead of internal error
This commit is contained in:
parent
a12c9f1a09
commit
915e67eb6e
@ -20,7 +20,7 @@ async def test_create___missing_fields(client, adminkey_headers_from):
|
||||
headers=adminkey_headers_from,
|
||||
json={"subscription": """{"a": "x"}"""},
|
||||
)
|
||||
assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR
|
||||
assert response.status_code == HTTPStatus.BAD_REQUEST
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@ -49,7 +49,7 @@ async def test_delete__no_endpoint_param(client, adminkey_headers_from):
|
||||
"/api/v1/webpush",
|
||||
headers=adminkey_headers_from,
|
||||
)
|
||||
assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR
|
||||
assert response.status_code == HTTPStatus.BAD_REQUEST
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
Loading…
x
Reference in New Issue
Block a user