From 177ff715415dd374ebe395d4aadf98a310cf6afe Mon Sep 17 00:00:00 2001 From: juftin Date: Thu, 25 Jan 2024 20:02:25 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20plugin=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_cli.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index 04e5fd3f..2a1d7d8a 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -23,3 +23,16 @@ def test_main_succeeds(runner: CliRunner) -> None: result = runner.invoke(cli) assert result.exit_code == 0 + + +def test_registered_plugins(runner: CliRunner) -> None: + """ + Assert that all registered plugins are available. + """ + from lunchable._cli import cli + + builtin_plugins = ["primelunch", "splitlunch", "pushlunch"] + + for plugin in builtin_plugins: + result = runner.invoke(cli, ["plugins", plugin, "--help"]) + assert result.exit_code == 0