feat(palette): define 11 core commands in commands.py
This commit is contained in:
@@ -43,3 +43,12 @@ def test_fuzzy_match_score_higher_for_exact_prefix():
|
||||
]
|
||||
results = fuzzy_match("fin", candidates, top_n=10)
|
||||
assert results[0].command.id == "a"
|
||||
|
||||
|
||||
def test_commands_registry_has_core_commands():
|
||||
from src.commands import registry
|
||||
all_ids = {c.id for c in registry.all()}
|
||||
assert "reset_session" in all_ids
|
||||
assert "clear_discussion" in all_ids
|
||||
assert "trigger_hot_reload" in all_ids
|
||||
assert "show_documentation" in all_ids
|
||||
|
||||
Reference in New Issue
Block a user