196df53a9b
- SPEC.md sectionized with stable ids (sectionize-markdown conventions) - src/phronesis: cli, registry, harnesses (modular, vibe first), state, formatting, completions; argcomplete completion; exit codes per SPEC - phronesis -> version line + skill table (name, version, category, description wrapped below, daedalus-style) - phronesis <category> -> filtered table; close-match typos for skills+categories - phronesis <skill> --install | --project [--harness <name>] [-f] installs whole skill dir; prompt when present; EOF/default = skip; -f no prompt - phronesis --update -> refresh every state entry; warns unbundled; reinstalls missing - state: <config>/phronesis/installed.json, unique by (name, harness, scope) - skill/python-tdd bumped 1.2.0 with category: development - test/ (56 tests, 92% cov) + autotest pytest check with 75% floor; all 7 autotest checks green Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
19 lines
599 B
Python
19 lines
599 B
Python
"""Completion candidate tests (SPEC item 3.8)."""
|
|
from phronesis import completions
|
|
from phronesis import registry
|
|
|
|
|
|
def test_word_completer_offers_categories_and_skills():
|
|
candidates = completions.word_completer("")
|
|
assert set(registry.CATEGORIES) <= set(candidates)
|
|
assert "python-tdd" in candidates
|
|
|
|
|
|
def test_word_completer_respects_the_prefix():
|
|
assert completions.word_completer("python") == ["python-tdd"]
|
|
assert completions.word_completer("dev") == ["development"]
|
|
|
|
|
|
def test_harness_completer_lists_registered():
|
|
assert completions.harness_completer("") == ["vibe"]
|