SPB Git

tests: SSE cache-control expectation

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Simon-Pierre Boucher committed (Sep 12, 2026) parent d3d1e0c Browse files

1 changed file +1 −1

Unified Split
modified tests/test_api_public.py +1 −1
@@ -97,7 +97,7 @@ async def test_live_stream_first_bytes(client): # type: ignore[no-untyped-def]
97 r = await client.get(f"{V}/live/stream?max_s=1") 97 r = await client.get(f"{V}/live/stream?max_s=1")
98 assert r.status_code == 200 98 assert r.status_code == 200
99 assert r.headers["content-type"].startswith("text/event-stream") 99 assert r.headers["content-type"].startswith("text/event-stream")
100− assert r.headers.get("x-accel-buffering") == "no" and r.headers["cache-control"] == "no-store" 100+ assert r.headers.get("x-accel-buffering") == "no" and r.headers["cache-control"] == "no-store, no-transform"
101 assert "event: heartbeat" in r.text and '"cursor"' in r.text and "event: end" in r.text 101 assert "event: heartbeat" in r.text and '"cursor"' in r.text and "event: end" in r.text
102 102
103 103
104 104
Menu

Theme