forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
21 lines (17 loc) · 871 Bytes
/
Copy pathconftest.py
File metadata and controls
21 lines (17 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Pytest path configuration for claude-sdk-python showcase unit tests.
Ensures ``src/`` (so ``agents.*`` imports resolve) and the integration root
(so the ``_shared`` symlink → ``../_shared`` resolves as a package) are on
``sys.path``. Mirrors the strands/ag2 integrations' conftest path setup; the
CVDIAG boundary tests import only ``agents._cvdiag_backend`` (which depends on
starlette + ``_shared.cvdiag_bootstrap`` only, NOT anthropic / claude-agent-sdk),
so no stub modules are installed here.
"""
import os
import sys
_HERE = os.path.dirname(__file__)
_PKG_ROOT = os.path.abspath(os.path.join(_HERE, "..", ".."))
# src/ holds agent_server.py and agents/
sys.path.insert(0, os.path.join(_PKG_ROOT, "src"))
# project root: the ``_shared`` symlink → ../_shared lives here, plus the
# ``tools`` symlink the agent modules rely on.
sys.path.insert(0, _PKG_ROOT)