test(mcp): cover per-request auth and workspace isolation

This commit is contained in:
CREDO23 2026-07-07 16:52:30 +02:00
parent 44d0f28c5f
commit fa7d5f83f0
5 changed files with 172 additions and 2 deletions

View file

@ -25,7 +25,9 @@ def _capture(client: SurfSenseClient) -> dict:
def test_none_params_are_dropped():
client = SurfSenseClient(api_base="http://test/api/v1", api_key="ss_pat_x", timeout=5)
client = SurfSenseClient(
api_base="http://test/api/v1", timeout=5, fallback_api_key="ss_pat_x"
)
seen = _capture(client)
asyncio.run(
client.request(