Looks really similar to requests_mock, which we're using already. I just made 
some notes on what it can do. 
In particular our pattern for method mocks. 
https://medium.com/@anthonypjshaw/c12510c30d79

Anthony Shaw




On Fri, Jan 27, 2017 at 6:15 PM +1100, "Allard Hoeve" <allardho...@gmail.com> 
wrote:










Hey Anthony,

Have you looked at `responses`?

Best,

Allard




On Fri, Jan 27, 2017, 07:41 anthony shaw  wrote:

> As part of the refactoring out the httplib package in favour of
> requests (yes, we need to start another release thread) I've been
> looking at removing the Mocks within libcloud.
>
> In short, they've become a frankenstein of private members, expected
> classes, monkey patching and shims.
>
> I'm working on another package, which we could leverage to cleanly
> mock out responses based on static files, method names using the
> adapters API within requests.
>
> https://github.com/tonybaloney/requests-staticmock#usage
>
> An extra pair of eyes over the code would be useful.
>
> Thanks,
> Ant
>





Reply via email to