- 🔭 Enjoy the Falcon Testing Automation.
Step 1: modify services.py for name of the services you are going to test.
Step 2: Test case can be placed inside cases folder.
Step 4: Open bot.py and change some required information.
Step 4: Open terminal and start run.sh file ($ ./run.sh)
Falcon req.stream behaviour:-
As detailed in the docs about req.stream.read() method and we are using it, is very dependent upon the WSGI server implementation.
When emulating requests with the Falcon testing framework, the server is effectively Python standard wsgiref, with some Falcon wrappers around.
If you are concerned with the req.stream behaviour and don't mind a slight performance penalty, req.bounded_stream could be used to normalize the behaviour across WSGI servers.
body = json.loads(req.stream.read())
body = json.loads(req.bounded_stream.read().decode())