From abc90fa1b6e4b35043a5640ca1625b9cd1fd93d8 Mon Sep 17 00:00:00 2001 From: kcar Date: Thu, 28 May 2026 19:19:05 +0100 Subject: [PATCH] test: align Supabase user client header expectation --- tests/test_me_bootstrap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_me_bootstrap.py b/tests/test_me_bootstrap.py index 731850a..b1ca15f 100644 --- a/tests/test_me_bootstrap.py +++ b/tests/test_me_bootstrap.py @@ -123,7 +123,10 @@ def test_supabase_client_for_user_uses_access_token_authorization(monkeypatch): assert anon.access_token == "user-token" assert captured["url"] == "http://supabase.test" assert captured["key"] == "anon-key" - assert captured["options_kwargs"]["headers"] == {"Authorization": "Bearer user-token"} + assert captured["options_kwargs"]["headers"] == { + "apikey": "anon-key", + "Authorization": "Bearer user-token", + } def test_no_school_bootstrap_requires_school_membership_but_allows_canvas():