Why This Matters
the lifecycle helpers are the failure-prone part of the local onboarding flow, but they are only lightly tested today.
Read First
app/cli/local_llm/ollama.py
Scope
- Add direct tests for
is_installed(), start_server(), and wait_for_server().
- Add at least one install-flow test for macOS and one for Linux without running the real commands.
- Keep the existing model-tag and pull tests where they are.
Tests / Coverage
tests/cli/test_local_llm_ollama_lifecycle.py
- cover
is_installed()
- cover
wait_for_server() success and timeout
- cover
start_server() subprocess wiring
- cover platform-specific install branches with mocked confirmation prompts
Acceptance Criteria
- lifecycle helpers have direct tests
- tests do not invoke real package managers or real
ollama
- current public helper names stay unchanged
Why This Matters
the lifecycle helpers are the failure-prone part of the local onboarding flow, but they are only lightly tested today.
Read First
app/cli/local_llm/ollama.pyScope
is_installed(),start_server(), andwait_for_server().Tests / Coverage
tests/cli/test_local_llm_ollama_lifecycle.pyis_installed()wait_for_server()success and timeoutstart_server()subprocess wiringAcceptance Criteria
ollama