Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.12 KB

Readme.md

File metadata and controls

35 lines (21 loc) · 1.12 KB
  • 🔭 Enjoy the Falcon Testing Automation.

This Testing Boilerplate code Test any Falcon Service.

Follow Below steps to getting started with Instabot and automate your commenting and like.


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)

Note:

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.

Production:

body = json.loads(req.stream.read())

Testing:

body = json.loads(req.bounded_stream.read().decode())

you are Done......