diff --git a/docs/testing.rst b/docs/testing.rst index d68cb533..e259f098 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -265,10 +265,10 @@ command from the command line. click.echo(f"Hello, {name}!") def test_hello_command(runner): - result = runner.invoke(["hello"]) + result = runner.invoke(args="hello") assert "World" in result.output - result = runner.invoke(["hello", "--name", "Flask"]) + result = runner.invoke(args=["hello", "--name", "Flask"]) assert "Flask" in result.output