Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>
Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai>
Co-authored-by: allansimon-mistral <allan.simon@ext.mistral.ai>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Clément Sirieix 2026-05-07 13:55:56 +02:00 committed by GitHub
parent 4972dd5694
commit b23f49e5f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 2342 additions and 240 deletions

View file

@ -133,3 +133,13 @@ class TestCommandRegistry:
assert result is not None
_, cmd, _ = result
assert cmd.handler == "_show_data_retention"
def test_loop_command_registration(self) -> None:
registry = CommandRegistry()
assert registry.get_command_name("/loop") == "loop"
result = registry.parse_command("/loop 30s ping")
assert result is not None
cmd_name, cmd, cmd_args = result
assert cmd_name == "loop"
assert cmd.handler == "_loop_command"
assert cmd_args == "30s ping"