Alexsander Hamir
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
2024-11-08 00:55:57 +05:30
2025-01-05 14:00:17 -08:00
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-11-08 00:55:57 +05:30
2024-12-28 17:08:19 -08:00
2025-09-25 15:47:01 -07:00
2025-09-16 16:18:23 -07:00
2024-11-08 00:55:57 +05:30
2025-09-25 15:47:01 -07:00
2025-07-16 15:07:01 -07:00
2025-10-17 19:38:45 -07:00
2025-01-15 21:52:45 -08:00
2025-09-08 18:40:54 -07:00
2025-11-11 08:20:13 -08:00
2024-11-08 00:55:57 +05:30
2025-09-25 15:47:01 -07: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
2024-11-08 00:55:57 +05:30
2025-12-11 12:50:03 -08:00
2025-07-22 23:16:46 -07:00
2025-09-25 21:54:00 -07:00
2025-11-21 08:53:18 -08:00
2025-01-28 21:01:56 -08:00
2024-11-08 00:55:57 +05:30
2025-09-27 16:57:27 -07:00
2025-07-27 09:52:22 -07:00
2025-11-14 09:21:45 -08:00
2024-11-08 00:55:57 +05:30
2025-10-25 10:19:24 -07:00
2025-07-04 14:42:42 -07:00
2025-01-10 20:38:06 -08:00
2024-11-08 00:55:57 +05:30
2025-10-25 10:19:24 -07:00
2024-12-28 17:08:19 -08:00
2024-11-08 00:55:57 +05:30
2025-12-06 21:23:49 -08:00
2024-11-08 00:55:57 +05:30
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
2024-12-26 19:05:27 -08:00
2025-12-11 12:50:03 -08:00
2025-12-11 12:50:03 -08:00
2025-12-13 09:32:43 -08:00
2025-01-05 13:43:32 -08:00