- tests/conftest.py installs minimal ultralytics/mediapipe stand-ins only when the real packages are absent, so clipwright.pipeline.main imports in the thin unit env instead of pytest.importorskip skipping 15 modules (63 tests). Unit suite is now 779 passed / 0 skipped. - requirements-test.txt pins uvicorn==0.46.0 (the real-backend server). - dashboard: vite preview proxies /api,/videos,/thumbnails to a locally-launched backend; Playwright gains a gated (CW_E2E_REAL) real project + uvicorn webServer running the pipeline stub_env; real-backend.spec.js drives the real upload->process->clip flow. CI dashboard job installs the backend test deps. - Verified: real lane 20 passed twice in the CI container; mock-only 19 passed without the flag; backend unit/API/pipeline 779/209/127.
24 lines
707 B
Text
24 lines
707 B
Text
# Thin test environment for BOTH the unit and E2E suites: everything the
|
|
# collected tests import at module level, WITHOUT the heavy ML stack
|
|
# (torch/ultralytics/mediapipe/faster-whisper). The pipeline modules import
|
|
# those lazily behind their feature gates, and the tests exercise the
|
|
# gated-off paths. The tail adds what only the E2E lanes need: the async HTTP
|
|
# client, the ASGI lifespan helper, the ffmpeg-driven media/scene helpers and
|
|
# the download helpers.
|
|
pytest
|
|
pillow
|
|
httpx
|
|
pydantic
|
|
numpy
|
|
opencv-python-headless
|
|
python-dotenv
|
|
google-genai
|
|
fastapi
|
|
uvicorn==0.46.0
|
|
python-multipart
|
|
pytest-asyncio==1.4.0
|
|
asgi-lifespan==2.1.0
|
|
pytest-timeout==2.4.0
|
|
scenedetect==0.7
|
|
tqdm==4.67.3
|
|
yt-dlp==2026.8.19
|