MCPcopy Create free account
hub / github.com/pallets/quart / test_cli_blueprints

Function test_cli_blueprints

tests/test_blueprints.py:158–172  ·  view source on GitHub ↗
(cli_group: str | None, args: list[str])

Source from the content-addressed store, hash-verified

156 ],
157)
158def test_cli_blueprints(cli_group: str | None, args: list[str]) -> None:
159 app = Quart(__name__)
160
161 blueprint = Blueprint("blueprint", __name__, cli_group=cli_group)
162
163 @blueprint.cli.command("cmd")
164 def command() -> None:
165 click.echo("command")
166
167 app.register_blueprint(blueprint)
168
169 app_runner = app.test_cli_runner()
170 result = app_runner.invoke(args=args)
171
172 assert "command" in result.output
173
174
175@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

test_cli_runnerMethod · 0.95
QuartClass · 0.90
BlueprintClass · 0.90
invokeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…