Co-authored-by: Bastien <bastien.baret@gmail.com>
Co-authored-by: Laure Hugo <201583486+laure0303@users.noreply.github.com>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
Co-authored-by: Paul Cacheux <paul.cacheux@mistral.ai>
Co-authored-by: Val <102326092+vdeva@users.noreply.github.com>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Clément Drouin 2026-04-03 15:56:50 +02:00 committed by GitHub
parent 9c1c32e058
commit 90763daf81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 6046 additions and 694 deletions

View file

@ -11,6 +11,7 @@ class TestCommandRegistry:
assert registry.get_command_name("/model") == "model"
assert registry.get_command_name("/clear") == "clear"
assert registry.get_command_name("/exit") == "exit"
assert registry.get_command_name("/data-retention") == "data-retention"
def test_get_command_name_normalizes_input(self) -> None:
registry = CommandRegistry()
@ -60,3 +61,9 @@ class TestCommandRegistry:
cmd = registry.find_command("/resume")
assert cmd is not None
assert cmd.handler == "_show_session_picker"
def test_data_retention_command_registration(self) -> None:
registry = CommandRegistry()
cmd = registry.find_command("/data-retention")
assert cmd is not None
assert cmd.handler == "_show_data_retention"