tests: SSE cache-control expectation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 changed file +1 −1
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 | ||||