fix(test): test_model_regression 加 @pytest.mark.integration(需 Ollama 服務)

與 global_repair_cooldown / anomaly_counter 一致,
Ollama 測試預設排除,需真實服務時用 pytest -m integration 執行

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-12 13:32:42 +08:00
parent d32d494320
commit a67a27f780

View File

@@ -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():
"""生成回歸測試報告"""