def check_if_env_var_is_set()

in function_app/src/helpers/azure_function.py [0:0]


def check_if_env_var_is_set(env_var_name: str) -> bool:
    """
    Check that an environment variable has a value and that it has been
    correctly set (and isn't the default instructional value to copy the
    value from the AZD environment outputs.)
    """
    return os.getenv(env_var_name) and not os.getenv(env_var_name).startswith("Copy ")