mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-14 22:52:15 +02:00
test(mcp): cover per-request auth and workspace isolation
This commit is contained in:
parent
44d0f28c5f
commit
fa7d5f83f0
5 changed files with 172 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue