14 lines
416 B
Python
14 lines
416 B
Python
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"]
|