mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-02 23:57:14 +00:00
feat(tenancy): implement workspace isolation
This commit is contained in:
@@ -12,7 +12,15 @@ import pytest
|
||||
from aiohttp import web
|
||||
from mcp import types as mcp_types
|
||||
|
||||
from langbot.pkg.provider.tools.loaders.mcp import MCPToolCallTimeoutError, RuntimeMCPSession
|
||||
from langbot.pkg.api.http.context import ExecutionContext
|
||||
from langbot.pkg.provider.tools.loaders.mcp import RuntimeMCPSession
|
||||
|
||||
|
||||
TEST_EXECUTION_CONTEXT = ExecutionContext(
|
||||
instance_uuid='instance-a',
|
||||
workspace_uuid='workspace-a',
|
||||
placement_generation=1,
|
||||
)
|
||||
|
||||
|
||||
class _TransportProbe:
|
||||
@@ -163,6 +171,7 @@ def _session(
|
||||
},
|
||||
True,
|
||||
app,
|
||||
TEST_EXECUTION_CONTEXT,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user