919db13fa8
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. |
||
---|---|---|
.. | ||
__init__.py | ||
bot_lib.py | ||
bots_test_lib.py | ||
run.py | ||
test-bots |