Pular para o conteúdo principal

test_hello.py (Código)

from quart.testing import QuartClient
from pytest import mark
@mark.asyncio
async def test_hello(client: QuartClient) -> None:
    response = await client.get('/hello')
    assert response.status_code == 200
    assert await response.json == {'hello': 'world'}