If a Blueprint's CLI group is empty, do not register it.
(app)
| 689 | |
| 690 | |
| 691 | def test_cli_empty(app): |
| 692 | """If a Blueprint's CLI group is empty, do not register it.""" |
| 693 | bp = Blueprint("blue", __name__, cli_group="blue") |
| 694 | app.register_blueprint(bp) |
| 695 | |
| 696 | result = app.test_cli_runner().invoke(args=["blue", "--help"]) |
| 697 | assert result.exit_code == 2, f"Unexpected success:\n\n{result.output}" |
| 698 | |
| 699 | |
| 700 | def test_run_exclude_patterns(): |
nothing calls this directly
no test coverage detected