Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_async_generator_with_model (0.14 seconds)

  1. tests/test_sse.py

    
    app.include_router(router, prefix="/api")
    
    
    @pytest.fixture(name="client")
    def client_fixture():
        with TestClient(app) as c:
            yield c
    
    
    def test_async_generator_with_model(client: TestClient):
        response = client.get("/items/stream")
        assert response.status_code == 200
        assert response.headers["content-type"] == "text/event-stream; charset=utf-8"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
Back to Top