moo.agent.tests

Modules

conftest

Shared pytest fixtures for the moo-agent test suite.

test_agent_tools

Unit tests for moo.agent.agent_tools — one case per tool against a FakeConnection whose request() records the dispatched command and returns a canned response.

test_brain

Tests for moo/agent/brain — surviving helper logic plus the new Stage-2 tool loop wiring.

test_brain_chain

Tests for moo/agent/brain_chain.py — process_server_text pure function.

test_brain_plans

Tests for moo/agent/brain_plans.py — plan persistence helpers.

test_brain_prompt

Tests for moo/agent/brain_prompt.py — pure string construction.

test_brain_state

Tests for moo/agent/brain_state.py — BrainState dataclass.

test_brain_state_lint

Lint check: assert the Step 6 BrainState rename left no stragglers.

test_cli

test_config

Tests for moo/agent/config.py.

test_connection

Tests for moo/agent/connection.py.

test_iac

Tests for moo.agent.iac — the client-side telnet IAC parser and negotiator.

test_llm_client

Tests for moo/agent/llm_client.py.

test_lore

Tests for moo/agent/lore.py.

test_response_model

Tests for moo/agent/response_model.py — the Pydantic AgentResponse meta-state schema and its validators.

test_session_log

Tests for moo/agent/session_log.py.

test_soul

Tests for moo/agent/soul.py.

test_tui

Tests for moo/agent/tui.py — _ScrollableOutputControl unit tests.