feat: scripted MCP client (auth_headers + connect/list/call); offline tests pass
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from lib.mcp_client import auth_headers
|
||||
|
||||
|
||||
def test_auth_headers_sets_key_and_user():
|
||||
h = auth_headers("k_test", "user-a@servicetitan.com")
|
||||
assert h["Authorization"] == "Bearer k_test"
|
||||
assert h["Arcade-User-ID"] == "user-a@servicetitan.com"
|
||||
|
||||
|
||||
def test_auth_headers_distinct_users():
|
||||
a = auth_headers("k", "alice")
|
||||
b = auth_headers("k", "bob")
|
||||
assert a["Arcade-User-ID"] != b["Arcade-User-ID"]
|
||||
Reference in New Issue
Block a user