Coverage for tests / test_tutorial / test_custom_response / test_tutorial007.py: 100%
7 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.tutorial007_py310 import app 1abcd
5client = TestClient(app) 1abcd
8def test_get(): 1abcd
9 fake_content = b"some fake video bytes" 1efg
10 response = client.get("/") 1efg
11 assert response.content == fake_content * 10 1efg