PunimTag Web Application - Major Feature Release #1
@ -67,6 +67,7 @@ class TestJobStreaming:
|
||||
response = test_client.get("/api/v1/jobs/stream/test-job-id")
|
||||
|
||||
if response.status_code == 200:
|
||||
# Check Content-Type for SSE
|
||||
assert response.headers.get("content-type") == "text/event-stream"
|
||||
# Check Content-Type for SSE (may include charset parameter)
|
||||
content_type = response.headers.get("content-type", "")
|
||||
assert content_type.startswith("text/event-stream")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user