boddle
boddle copied to clipboard
Unit testing tool for Python's bottle library.
I have a route like this: ``` @app.post('/submit') def submit(): img = bottle.request.files['img'] img.save('/srv/images') ``` It's for getting and saving an image file from user. To test that, with boddle,...
Bottle stores these two headers without the `HTTP_` prefix (see https://github.com/bottlepy/bottle/blob/f9b1849db4dd724e36a93a1032be592193fba581/bottle.py#L2289). But boddle doesn't make this exception, see: https://github.com/keredson/boddle/blob/74413e4c5b39a37ea1694fab07b459ccd2998390/boddle.py#L48 Which means that this fails: ``` with boddle(headers={'Content-Type': 'application/json'}): content_type =...
The code checks if `body` is a string by doing `if body.lower:`. That passes if it is a string, but throws an exception if body is a `io.BufferedReader`, such as...
I tried to test my application using boddle and stumpled upon two problems: * As @signalw mentioned in #7: forms is not testable * I'm using [beaker](https://github.com/bottlepy/bottle-beaker) for session handling...
I see the point of having `extra_orig` is when the user passes in extra arguments that contain original request attributes, we temporarily store them in it. We set the values...
``` DEPRECATION: boddle is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce...
The `setup.py` says [LGPLv3](https://github.com/keredson/boddle/blob/master/setup.py#L27) and the LICENSE file [LGPLv2.1](https://github.com/keredson/boddle/blob/master/LICENSE). You could please align the license release. LGPLv2.1+ would cover LGPLv3 but I'm no expert.
It would be very helpful if you could tag releases as well. This would enable distributions who want to fetch the package from GitHub instead of PyPI. Thanks
I'm making a lot of use of this and need support for file upload in POST commands. Can we add that?