You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 325ad2e
Browse filesBrowse the repository at this point in the historyBrowse files
Pass the s3 cookie into get_loan_history_data (#14001)
* Pass the s3 cookie into get_loan_history_data
/account/loan-history.json 500'd under FastAPI because
get_loan_history_data read web.cookies(), which needs a web.py request.
Callers now pass the cookie in, as fastapi/borrow.py already does, and a
missing account raises AccountNotFoundError (404 at each route) instead
of web.py's render.notfound.
Closes#13959
* Trim loan history docstring and redundant tests
The route test in test_account_loans.py already covers the cookie being
passed through without web.cookies(), so drop the heavily mocked
duplicate in test_lending.py and a repeated assertion.
---------
Co-authored-by: Raymond Berger <RayBB@users.noreply.github.com>
0 commit comments