Skip to content
Myr

docs pass cli args as kwarg to test runner

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by MeViMo · committed by David Lord · parent 5c0b9a6 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/testing.rst+2 added-2 removed
263 unmodified lines
264 def hello_command(name):265 click.echo(f"Hello, {name}!")266267 def test_hello_command(runner):268 result = runner.invoke(["hello"])268 result = runner.invoke(args="hello")269 assert "World" in result.output270271 result = runner.invoke(["hello", "--name", "Flask"])271 result = runner.invoke(args=["hello", "--name", "Flask"])272 assert "Flask" in result.output273274275Tests that depend on an Active Context
44 unmodified lines