From 19d7a0ef78f1f8a05f7be5f0e8d2192fd1d5e5e8 Mon Sep 17 00:00:00 2001 From: MeViMo Date: Fri, 8 Apr 2022 18:29:42 +0200 Subject: [PATCH] docs pass cli args as kwarg to test runner --- docs/testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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