mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
14 lines
345 B
Python
14 lines
345 B
Python
import typer
|
|
|
|
from tiddl.cli.commands import register_commands, COMMANDS
|
|
|
|
|
|
def test_register_commands_adds_typers():
|
|
app = typer.Typer()
|
|
register_commands(app)
|
|
|
|
registered_names = [cmd.name for cmd in app.registered_groups + app.registered_commands]
|
|
|
|
for command in COMMANDS:
|
|
assert command.info.name in registered_names
|