From 7da2a07a1afccc3e80fbdf7edcba4f156f789c20 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 27 Jul 2026 00:33:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=BF=AE=E5=A4=8Dtest=5Fagent=5Fd?= =?UTF-8?q?ocs.py=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BB=8Eapps/api=E8=BF=90=E8=A1=8C=E4=B9=9F=E8=83=BD?= =?UTF-8?q?=E6=89=BE=E5=88=B0docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用 __file__ 定位项目根目录,避免依赖pytest运行目录。 修复后Unit Tests CI从apps/api目录运行也能正常通过。 --- tests/unit/test_agent_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_agent_docs.py b/tests/unit/test_agent_docs.py index c23b26a76..581f2a68b 100644 --- a/tests/unit/test_agent_docs.py +++ b/tests/unit/test_agent_docs.py @@ -1,6 +1,6 @@ from pathlib import Path -AGENT_DOCS = Path("docs/agents") +AGENT_DOCS = Path(__file__).parent.parent.parent / "docs" / "agents" EXPECTED_AGENTS = [ "requirement_agent", "arch_agent",