Skip to content

Commit

Permalink
🧪 plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Jan 26, 2024
1 parent a98cde4 commit 177ff71
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 177ff71

Please sign in to comment.