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
def commercetools_api(): with backend_mocker() as m: yield m