| 1 |
from fastapi.testclient import TestClient |
| 2 |
|
| 3 |
from docs_src.custom_response.tutorial007_py310 import app |
| 4 |
|
| 5 |
client = TestClient(app) |
| 6 |
|
| 7 |
|
| 8 |
def test_get(): |
| 9 |
fake_content = b"some fake video bytes" |
| 10 |
response = client.get("/") |
| 11 |
assert response.content == fake_content * 10 |