python-zulip-api/bots_api
Abhijeet Kaur 919db13fa8 bots: Add mock test support for bots using internet services.
Mock requests.get function for bots relying on external services
which may return different results. 'http_response' is mocked to
check if the bots run well and to make the tests determinitic. The
code first checks if the http request corresponding to the http response
is called or not.

This commit renders test files of bots using the internet
(third party) services to Fail. As requests.get() is replaced
by our mock function.

Since we have not provided mock http response for bots like xkcd,
wikipedia, define etc. Their requests.get() function returns empty
message.
2017-06-05 15:11:24 -07:00
..
__init__.py bots: Move contrib_bots to api/bots*. 2017-06-01 12:31:54 -07:00
bot_lib.py pep8: Add compliance with rule E261 bot_lib.py. 2017-06-04 15:00:42 +05:30
bots_test_lib.py bots: Add mock test support for bots using internet services. 2017-06-05 15:11:24 -07:00
run.py bots: Move contrib_bots to api/bots*. 2017-06-01 12:31:54 -07:00
test-bots pep8: Add compliance with rule E261 test-bots. 2017-06-04 15:00:58 +05:30