diff --git a/tests/test_gemini_retry.py b/tests/test_gemini_retry.py index 5354600..17f09c2 100644 --- a/tests/test_gemini_retry.py +++ b/tests/test_gemini_retry.py @@ -7,7 +7,9 @@ loop and kill the job on the first blip. import types import pytest -import main +# main pulls in cv2/torch/mediapipe at import time; the minimal CI env lacks +# them, so skip there. Runs fully in the container/local where deps exist. +main = pytest.importorskip("main") class _FakeResponse: diff --git a/tests/test_job_error_text.py b/tests/test_job_error_text.py index e60ff90..f6a8de1 100644 --- a/tests/test_job_error_text.py +++ b/tests/test_job_error_text.py @@ -5,7 +5,11 @@ subsystem because the classifier read the tail of the log instead of the error: a Gemini blip was reported as "ffmpeg/render" and a silent upload as a broken download path. """ -import app +import pytest + +# app pulls in dotenv/fastapi/cloud at import time; the minimal CI env lacks +# them, so skip there. Runs fully in the container/local where deps exist. +app = pytest.importorskip("app") from cloud.alerts import _classify_failure