Skip to content

Test Coverage: core/agents.py #2

@NickCrew

Description

@NickCrew

Module Information

  • File: claude_ctx_py/core/agents.py
  • Current Coverage: 0% (no tests)
  • Target Coverage: 80%+
  • Priority: 🔴 High (core functionality)

Functions Needing Tests

  • list_agents() - List all available agents
  • agent_status() - Show agent activation status
  • agent_activate() - Activate agents with dependency checking
  • agent_deactivate() - Deactivate agents
  • build_agent_graph() - Build dependency graph
  • agent_deps() - Show agent dependencies
  • agent_graph() - Generate dependency visualization
  • validate_agent() - Validate agent metadata against schema

Test Areas

  • ✅ Agent listing (active, disabled, all)
  • ✅ Activation/deactivation logic
  • ✅ Dependency graph construction
  • ✅ Circular dependency detection
  • ✅ Validation against schema
  • ✅ Error handling (missing files, invalid YAML)

Acceptance Criteria

  • tests/unit/test_core_agents.py created
  • 80%+ coverage achieved
  • Dependency graph tests comprehensive
  • Circular dependency detection tested
  • Tests pass in CI/CD

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-moduleCore module functionalitypriority-highHigh prioritytest-coverageTest coverage improvementstestingTesting and test coverage related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions