def test_click_invocation(mocker) -> None:
    """Test click function called correctly by cookiecutter.

    Test for boolean type invocation.
    """
    prompt = mocker.patch('cookiecutter.prompt.YesNoPrompt.ask')
    prompt.return_value = DEFAULT

    assert read_user_yes_no(QUESTION, DEFAULT) == DEFAULT

    prompt.assert_called_once_with(QUESTION, default=DEFAULT)
Test click function called correctly by cookiecutter.

    Test for boolean type invocation.
    
tests/test_read_user_yes_no.py