patrys / httmock

A mocking library for requests
Other
468 stars 57 forks source link

mock by request method #15

Closed kevinludwig closed 10 years ago

kevinludwig commented 10 years ago

Perhaps I am mistaken, but it looks like your library does not support mocking by method, e.g. how would you distinguish between a GET and a POST with the same request url?

patrys commented 10 years ago

You get the full request object. Would you like the decorator to handle that explicitly (ie. only catch when a specific method is used)?

patrys commented 10 years ago

Now part of release 1.2.2