代码提交
This commit is contained in:
1 parent
151ecceb85
commit
816c46d447
6 files changed
+140
-26
No files matched your search
@@ -9,6 +9,7 @@ import pytest_asyncio
|
||||
from fastapi import HTTPException
|
||||
from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
|
||||
|
||||
from app.gateway.app import create_app
|
||||
from app.gateway import services as gateway_services
|
||||
from app.gateway.routers import intent as intent_router
|
||||
from app.gateway.routers import position_roundtable as position_roundtable_router
|
||||
@@ -35,6 +36,20 @@ def test_reject_node_request_allows_an_optional_reason():
|
||||
assert request.reason == ""
|
||||
|
||||
|
||||
def test_position_roundtable_router_has_intranet_compatibility_prefix():
|
||||
"""The workspace must survive proxies that only expose /api/multi-agent."""
|
||||
app = create_app()
|
||||
registrations = {
|
||||
(route.include_context.prefix, route.include_context.include_in_schema)
|
||||
for route in app.routes
|
||||
if getattr(route, "original_router", None) is position_roundtable_router.router
|
||||
}
|
||||
|
||||
assert ("/api", True) in registrations
|
||||
assert ("/api/multi-agent", False) in registrations
|
||||
assert position_roundtable_router.router.prefix == "/position-roundtable"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_session_activation_freezes_chain_and_creates_nodes_once(store):
|
||||
created = await store.create_session(
|
||||
|
||||
Reference in new issue
Block a user