From a67a27f780252a9fe83e4148ca2e2e580711e600 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 12 Apr 2026 13:32:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20test=5Fmodel=5Fregression=20?= =?UTF-8?q?=E5=8A=A0=20@pytest.mark.integration=EF=BC=88=E9=9C=80=20Ollama?= =?UTF-8?q?=20=E6=9C=8D=E5=8B=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 與 global_repair_cooldown / anomaly_counter 一致, Ollama 測試預設排除,需真實服務時用 pytest -m integration 執行 Co-Authored-By: Claude Sonnet 4.6 --- apps/api/tests/test_model_regression.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/tests/test_model_regression.py b/apps/api/tests/test_model_regression.py index f96c07c8..d868f14f 100644 --- a/apps/api/tests/test_model_regression.py +++ b/apps/api/tests/test_model_regression.py @@ -109,8 +109,9 @@ async def check_ollama_available() -> bool: # 測試類別 # ============================================================================= +@pytest.mark.integration class TestModelRegression: - """模型回歸測試""" + """模型回歸測試 — 需要 Ollama 服務 (192.168.0.188:11434)""" @pytest.fixture(autouse=True) async def check_ollama(self): @@ -140,6 +141,7 @@ class TestModelRegression: # 準確度報告 # ============================================================================= +@pytest.mark.integration @pytest.mark.asyncio async def test_regression_report(): """生成回歸測試報告"""