(cli_group: str | None, args: list[str])
| 156 | ], |
| 157 | ) |
| 158 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…