dependabot · 09:12Bumps urllib3 from 1.26.18 to 2.2.3.
✕ tests / pytest failed in 41s app/clients/payments.py:14 TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist'
invisiblefix · botChecking how this project already handles retries.
Commit · 1 year agoIntroduce app/http.py
Review · 3 months agoKeep retry logic in the shared client@alex: “Don’t build Retry objects per client. Use
shared_client(), it already sets allowed_methods.”from your historyDocs · ADR-007No per-module HTTP sessions
Searching your project historyapp/clients/payments.py
- retry = Retry(total=3, method_whitelist=["GET", "POST"])
- session.mount("https://", HTTPAdapter(max_retries=retry))
+ session = shared_client(retries=3)
Matches @alex’s review212 tests passed1 file, 3 lines