
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-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-10-17 19:38:45 -07:00
2025-11-11 08:20:13 -08:00
2025-12-09 18:40:51 -08:00
2025-11-05 07:12:13 -08:00
2025-12-13 10:36:13 -08:00
2025-12-11 12:50:03 -08:00
2025-11-21 08:53:18 -08:00
2025-09-27 16:57:27 -07:00
2025-11-14 09:21:45 -08:00
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-12-06 21:23:49 -08:00
2025-11-26 11:37:55 -08:00
2025-12-11 12:50:03 -08:00
2025-11-22 10:01:02 -08:00
2025-12-08 12:21:26 -08:00
2025-11-25 17:14:59 +05:30
2025-12-11 12:50:03 -08:00
2025-12-11 12:50:03 -08:00
2025-12-13 09:32:43 -08:00