def commercetools_api(functionapp_env):
    """
    Intercept any HTTP requests.

    This uses requests mocker, so be careful with mocking other endpoints.
    """
    with backend_mocker() as m:
        yield m
Example #2
0
def commercetools_api():
    with backend_mocker() as m:
        yield m