patrys / httmock

A mocking library for requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mock by request method

kevinludwig opened this issue · comments

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?

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

Now part of release 1.2.2