Skip to content

test(integration): Complete unleashed.py pending scenarios #2

@martymcenroe

Description

@martymcenroe

Problem

The unleashed.py tool has existing tests in tests/test_unleashed.py, but several test scenarios are marked as pending or incomplete. This tool manages "unleashed mode" for agent operations and is critical infrastructure. Incomplete tests leave gaps in verification.

Goal

Complete the pending integration tests for tools/unleashed.py covering:

  • Mode transitions (enable/disable unleashed mode)
  • Configuration persistence
  • Edge cases for mode state
  • Integration with other AgentOS tools
  • Error recovery scenarios

Acceptance Criteria

  • All pending tests in tests/test_unleashed.py are implemented
  • No @pytest.mark.skip or pass placeholders remain
  • Tests pass: poetry run pytest tests/test_unleashed.py -v
  • Integration scenarios test real file system interactions (use temp directories)
  • Document any intentionally skipped tests with clear rationale

Files to Modify

  • tests/test_unleashed.py (complete pending tests)
  • pyproject.toml (if new test dependencies needed)

Priority

CRITICAL - Unleashed mode affects agent safety boundaries.

Source

Identified in test gap analysis: 2026-01-17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions