feat: completion enchancements (#302)

* feat: completion enchancements

* fix: handle exception

* fix: duplicate view

* fix: remove deadcode

* fix tab
This commit is contained in:
Wiktor Cupiał
2026-07-05 07:14:42 +02:00
committed by GitHub
parent f086d77756
commit 1d117ff277
18 changed files with 504 additions and 219 deletions
+3 -3
View File
@@ -46,15 +46,15 @@ class TestCommandManagerSubcommands:
names = {name for name, _desc in scs}
assert {"list", "add", "remove", "clear", "save", "help"} <= names
def test_channel_has_status_stop(self):
"""``/channel`` must expose status + stop subcommands."""
def test_channel_has_subcommands(self):
"""``/channel`` must expose status, stop, and channel type subcommands."""
manager = CommandManager()
from EvoScientist.commands.implementation.channel import ChannelCommand
manager.register(ChannelCommand())
scs = manager.list_subcommands("/channel")
names = {name for name, _desc in scs}
assert names == {"status", "stop"}
assert {"status", "stop", "telegram", "discord"}.issubset(names)
def test_command_without_subcommands_returns_empty(self):
"""A command with no subcommands must return an empty list."""