get_snowflake_mock_return_value
Retrieves the current Snowflake mock return value for a deployment.
Parameters
mb.get_snowflake_mock_return_value(deployment_name=, ...)
deployment_name:strThe name of the deployment to get the mock value from.branch:Optional[str]The branch the deployment is on. If not specified the current branch of the Python environment will be used, which ismainby default.version:Optional[int]The version number of the deployment to get the mock value from. If unspecified the latest version is used.
Returns
Any The mock value of the deployment or None if there isn't one. An exception is raised if the deployment or version is not found.
Examples
Getting the current mock return value
Fetch the Snowflake mock return value set for the deployment, my_deployment:
mb.get_snowflake_mock_return_value("my_deployment")
Getting the mock return value from a previous version
Fetch the Snowflake mock return value for version 10 of my_deployment:
mb.get_snowflake_mock_return_value("my_deployment", version=10)
See also
set_snowflake_mock_return_value- Snowflake mock return values.
snowflake_mock_return_valueparameter indeploy