
Alexsander HamirandGitHub
32fdb9e60e
fix: Add headers to Request scope in JWT tests to fix KeyError (#17927)
- Add 'headers': [] to all Request(scope={'type': 'http'}) instances in test_jwt.py
- Fixes KeyError: 'headers' when accessing request.headers in user_api_key_auth
- All 7 previously failing tests now pass:
- test_allow_access_by_email (2 variants)
- test_allowed_routes_admin (4 variants)
- test_team_token_output (2 variants)
The Starlette Request object requires 'headers' key in scope dictionary
when accessing request.headers property.
2025-12-13 10:36:13 -08:00
..
2025-12-10 19:13:50 -08:00
2025-12-02 15:36:23 -08:00
2025-12-06 05:38:16 -08:00
2025-12-05 12:59:35 -08:00
2025-12-09 17:56:13 +05:30
2025-10-30 17:05:32 -07:00
2025-12-12 03:57:46 -08:00
2025-12-05 08:45:02 -08:00
2025-11-26 17:11:33 -08:00
2025-12-11 15:28:43 -08:00
2025-12-08 12:21:26 -08:00
2025-11-24 20:41:44 -08:00
2025-11-26 11:52:05 -08:00
2025-12-12 16:38:04 -08:00
2025-12-06 16:00:05 -08:00
2025-12-11 15:36:54 -08:00
2025-12-10 10:55:33 +09:00
2025-11-03 17:22:19 -08:00
2025-10-31 18:20:52 -07:00
2025-11-27 09:14:43 -08:00
2025-11-22 15:44:28 -08:00
2025-11-12 09:12:14 -08:00
2025-11-20 15:08:38 +05:30
2025-12-05 12:40:58 -08:00
2025-10-04 10:57:02 -07:00
2025-12-13 10:36:13 -08:00
2025-12-12 04:36:10 -08:00
2025-11-21 14:56:19 -08:00
2025-10-31 20:32:03 -07:00
2025-11-26 11:54:11 -08:00
2025-12-13 10:11:01 -08:00
2025-10-04 10:18:25 -07:00
2025-12-03 15:29:47 +05:30
2025-10-03 10:16:29 -07:00
2025-11-07 10:24:27 -08:00
2025-10-08 18:31:26 -07:00
2025-10-28 19:05:13 -07:00
2025-11-15 10:34:24 -08:00