Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
336 stars 110 forks source link

DELETE params does not behave like GET #243

Open mardiros opened 2 years ago

mardiros commented 2 years ago

Documentation Suggestion

https://docs.pylonsproject.org/projects/webtest/en/latest/api.html#webtest.app.TestApp.delete

The doc says that Do a DELETE request. Similar to get().

But actually, the parameter params of get() create a querystring.

And params in DELETE create an url encode version of the parameter in a body.

so it behave more like post() than get()

Describe the improvement

As an improvement, actually, a breaking change should be made, where params should act like get()