surfaces/tests/platform/test_agent_session.py

21 lines
595 B
Python

"""Compatibility tests after the Phase 4 migration."""
import sys
from pathlib import Path
_api_root = Path(__file__).resolve().parents[2] / "external" / "platform-agent_api"
if str(_api_root) not in sys.path:
sys.path.insert(0, str(_api_root))
def test_lambda_agent_api_module_is_importable():
from lambda_agent_api.agent_api import AgentApi
assert AgentApi is not None
def test_agent_session_module_is_intentionally_stubbed():
contents = Path(__file__).resolve().parents[2] / "sdk" / "agent_session.py"
assert "replaced by AgentApiWrapper" in contents.read_text()