API Reference#
Package for requests_mock_flask
.
- requests_mock_flask.add_flask_app_to_mock(mock_obj, flask_app, base_url)#
Make it so that requests sent to the
base_url
are forwarded to theFlask
app, when in the context of themock_obj
.- Parameters:
mock_obj (
Any
) –flask_app (
Flask
) –base_url (
str
) –
- Return type:
None