Skip to content

Add direct unit tests for install/start/wait helpers in app/cli/local_llm/ollama.py #906

@VaibhavUpreti

Description

@VaibhavUpreti

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

  1. Add direct tests for is_installed(), start_server(), and wait_for_server().
  2. Add at least one install-flow test for macOS and one for Linux without running the real commands.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCommand-line interface worktestsTest coverage and test organization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions