test(ci): saltar los tests que importan main/app en el CI mínimo
El CI instala solo pytest+pillow+httpx+pydantic+sqlalchemy. test_gemini_retry importa main (cv2/torch) y test_job_error_text importa app (dotenv/fastapi), que faltan → ModuleNotFoundError en la colección. importorskip los salta en CI y los corre entero en el contenedor/local donde sí están las deps. Verificado en un venv réplica del CI: 125 passed, 2 skipped.
This commit is contained in:
parent
6dd3ef8117
commit
1c6431e8a0
2 changed files with 8 additions and 2 deletions
|
|
@ -7,7 +7,9 @@ loop and kill the job on the first blip.
|
||||||
import types
|
import types
|
||||||
import pytest
|
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:
|
class _FakeResponse:
|
||||||
|
|
|
||||||
|
|
@ -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
|
a Gemini blip was reported as "ffmpeg/render" and a silent upload as a broken
|
||||||
download path.
|
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
|
from cloud.alerts import _classify_failure
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue