Coverage for tests / test_tutorial / test_custom_response / test_tutorial009c.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-12 18:15 +0000
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-12 18:15 +0000
1from fastapi.testclient import TestClient 1abcd
3from docs_src.custom_response.tutorial009c_py310 import app 1abcd
5client = TestClient(app) 1abcd
8def test_get(): 1abcd
9 response = client.get("/") 1efg
10 assert response.content == b'{\n "message": "Hello World"\n}' 1efg