You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a double is created for an endpoint it currently stubs the endpoint for all HTTP methods.
It should be possible to create a double only for specific HTTP methods.
Something along the lines of :
spy.endpoint('/foo').should_return_error_code(500)# Stubs all HTTP methodsspy.endpoint('/foo',GET).should_return_error_code(500)# Stubs only GETspy.endpoint('/foo',[GET,POST]).should_return_error_code(500)# Stubs GET and POST
The text was updated successfully, but these errors were encountered:
When a double is created for an endpoint it currently stubs the endpoint for all HTTP methods.
It should be possible to create a double only for specific HTTP methods.
Something along the lines of :
The text was updated successfully, but these errors were encountered: