Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_stream_bare_sync_iterable (0.13 seconds)

  1. tests/test_stream_bare_type.py

    
    client = TestClient(app)
    
    
    def test_stream_bare_async_iterable():
        response = client.get("/items/stream-bare-async")
        assert response.status_code == 200
        assert response.headers["content-type"] == "application/jsonl"
        lines = [json.loads(line) for line in response.text.strip().splitlines()]
        assert lines == [{"name": "foo"}]
    
    
    def test_stream_bare_sync_iterable():
        response = client.get("/items/stream-bare-sync")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top