def test_getchar():

    @click.command()
    def continue_it():
        click.echo(click.getchar())
    runner = CliRunner()
    result = runner.invoke(continue_it, input='y')
    assert (not result.exception)
    assert (result.output == 'y\n')
def test_getchar():

    @click.command()
    def continue_it():
        click.echo(click.getchar())
    runner = CliRunner()
    result = runner.invoke(continue_it, input='y')
    assert (not result.exception)
    assert (result.output == 'y\n')