surfaces/tests/platform/test_agent_session.py

27 lines
752 B
Python

"""Compatibility tests after the Phase 4 migration."""
from pathlib import Path
def test_lambda_agent_api_module_is_importable():
from sdk.upstream_agent_api import AgentApi
assert AgentApi is not None
def test_lambda_agent_api_preserves_base_url_path_suffix():
from sdk.upstream_agent_api import AgentApi
api = AgentApi(
agent_id="matrix-bot",
base_url="http://platform-agent:8000/proxy/",
chat_id="chat-7",
)
assert api.url == "http://platform-agent:8000/proxy/v1/agent_ws/chat-7/"
def test_agent_session_module_is_intentionally_stubbed():
contents = Path(__file__).resolve().parents[2] / "sdk" / "agent_session.py"
assert "replaced by direct AgentApi usage" in contents.read_text()