Commit 9bfcb26
fix(tests): add url.scheme to FakeRequest; guard request.url access in login
FakeRequest lacked a .url attribute, causing AttributeError on the
_secure = request.url.scheme == "https" line added for dynamic cookie
Secure flag. Added url=SimpleNamespace(scheme="http") to FakeRequest and
used getattr fallback in main.py for any other bare-request call sites.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 983a182 commit 9bfcb26
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments