Compare commits
2 Commits
c02d375da7
...
6a194d9f62
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a194d9f62 | |||
| 5fb66f9a85 |
@ -443,7 +443,8 @@ jobs:
|
||||
# Use venv's pip and python directly (avoids shell activation issues)
|
||||
# Install core dependencies including numpy and pillow (needed for module-level imports)
|
||||
# Skip heavy ML dependencies (tensorflow, deepface, opencv) for faster builds
|
||||
/tmp/backend-venv/bin/pip install --no-cache-dir fastapi uvicorn pydantic sqlalchemy psycopg2-binary redis rq python-jose python-multipart python-dotenv bcrypt numpy pillow
|
||||
# Include email-validator for pydantic[email] email validation
|
||||
/tmp/backend-venv/bin/pip install --no-cache-dir fastapi uvicorn "pydantic[email]" sqlalchemy psycopg2-binary redis rq python-jose python-multipart python-dotenv bcrypt numpy pillow
|
||||
|
||||
# Set environment variables for validation
|
||||
export PYTHONPATH=$(pwd)
|
||||
|
||||
@ -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