Mock Third party API while testing Flask API

32 views
Skip to first unread message

Muhammad Basit

unread,
Aug 24, 2016, 8:50:17 PM8/24/16
to Light Table Discussion
Hi,
I have a flask restful API and I am using py tests for its testing. My Flask API uses some third party APIs say Google's API.
I want that when I hit an endpoint of Flask API in some test, intermediate call to Google's API is mocked. i.e. it won't hit third party API actually.
Any ideas how can I do that?
I am using python version 2.9.7

Best,
Basit

Magnus Rundberget

unread,
Aug 26, 2016, 8:34:58 AM8/26/16
to Light Table Discussion
How is this related to LightTable ? Maybe you'll have
More luck trying a forum/slack/irc for Python?

Cheers
Magnus

Reply all
Reply to author
Forward
0 new messages