From 76aab9c2693c3170992c4e34754f4ecb583534e1 Mon Sep 17 00:00:00 2001 From: krypticmouse Date: Sat, 28 Mar 2026 23:49:12 +0000 Subject: [PATCH] fix: guard fastapi import in test_sendblue_webhook.py with importorskip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- tests/server/test_sendblue_webhook.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/server/test_sendblue_webhook.py b/tests/server/test_sendblue_webhook.py index 7c3849e5..375447b4 100644 --- a/tests/server/test_sendblue_webhook.py +++ b/tests/server/test_sendblue_webhook.py @@ -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)