bad request instead of internal error

This commit is contained in:
dni ⚡ 2024-09-05 08:25:38 +02:00
parent a12c9f1a09
commit 915e67eb6e
No known key found for this signature in database
GPG Key ID: D1F416F29AD26E87

View File

@ -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