Closed jvanasco closed 7 years ago
Ehh, nah, fuck requests. It's definitely possible to subclass the relevant classes in Micawber if you'd like to create a 3rd-party library that uses requests for the backend, however.
It's definitely possible to subclass the relevant classes in Micawber if you'd like to create a 3rd-party library that uses requests for the backend, however.
Yeah, that's what we did (just for the testing). We already had requests
loaded in the app, so there wasn't a hit to the process size.
i know that
requests
is a bit of a resource hit (and it's been brought up before), but I wanted to suggest using it as the Provider (or an ancillary option) because it could improve testing.The
responses
library (https://github.com/getsentry/responses) lets you easily intercept calls to therequests
library to quickly write integrated tests. for example:This was a big benefit to us for testing and simulations (and incredibly easy to implement via subclassing), so I wanted to suggest it upstream.