forked from mtusi2026/mtusi2026lab2
add tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import logging
|
||||
import json
|
||||
import logging
|
||||
|
||||
from httpx import AsyncClient
|
||||
|
||||
@@ -52,7 +52,9 @@ async def test_method_not_allowed_preserves_405(client: AsyncClient):
|
||||
assert_request_id(response)
|
||||
|
||||
|
||||
async def test_unhandled_exception_is_hidden_from_client(client_no_raise: AsyncClient, caplog):
|
||||
async def test_unhandled_exception_is_hidden_from_client(
|
||||
client_no_raise: AsyncClient, caplog
|
||||
):
|
||||
with caplog.at_level(logging.ERROR, logger="app.errors.handlers"):
|
||||
response = await client_no_raise.get("/__test__/explode")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user