fix: guard fastapi import in test_sendblue_webhook.py with importorskip

CI installs `--extra dev` but not `--extra server`, so fastapi is
unavailable. All other server tests use pytest.importorskip("fastapi")
to skip gracefully — this file was missing the guard.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
krypticmouse
2026-03-28 23:49:12 +00:00
co-authored by Claude Opus 4.6
parent eeb66a1606
commit 76aab9c269
+6 -3
View File
@@ -9,10 +9,13 @@ from __future__ import annotations
from unittest.mock import MagicMock
import pytest
from fastapi import FastAPI
from starlette.testclient import TestClient
from openjarvis.core.registry import ChannelRegistry
pytest.importorskip("fastapi", reason="openjarvis[server] not installed")
from fastapi import FastAPI # noqa: E402
from starlette.testclient import TestClient # noqa: E402
from openjarvis.core.registry import ChannelRegistry # noqa: E402
@pytest.fixture(autouse=True)