fix(test): 排除 integration 測試防止 Redis 未初始化錯誤
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 34s
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 34s
pytest 預設排除 @pytest.mark.integration 標記的測試(需真實 Redis)。 如需執行整合測試:pytest -m integration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -106,6 +106,7 @@ ignore_errors = true
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests"]
|
||||
addopts = "-m 'not integration'"
|
||||
markers = [
|
||||
"integration: 需要外部服務 (Redis/PostgreSQL/K8s) 的整合測試,需在有外部服務的環境執行",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user