From 6e0ee8b4135be2ed4e6edc4836852c0341aea6a7 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 12 Apr 2026 12:37:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E6=8E=92=E9=99=A4=20integration?= =?UTF-8?q?=20=E6=B8=AC=E8=A9=A6=E9=98=B2=E6=AD=A2=20Redis=20=E6=9C=AA?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pytest 預設排除 @pytest.mark.integration 標記的測試(需真實 Redis)。 如需執行整合測試:pytest -m integration Co-Authored-By: Claude Sonnet 4.6 --- apps/api/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/pyproject.toml b/apps/api/pyproject.toml index 955feb07..11ea5dc7 100644 --- a/apps/api/pyproject.toml +++ b/apps/api/pyproject.toml @@ -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) 的整合測試,需在有外部服務的環境執行", ]