Orchestrata Ultimate › Tests › Reference › scripts › test_refactor_cli

Tests reference — tests/scripts/test_refactor_cli.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_refactor_cli.py

source · 8 tests · 293 lines

Tests for scripts/refactor.py — the SPEC-103 refactor CLI wrapper.

Covers: core.protocols.providers, llm.client

Kind Name Line Description
function test_setup_env_sets_defaults_when_unset 124
function test_setup_env_raises_when_redis_host_unset 142 RUL-003: REDIS_HOST has no default — this used to setdefault the
function test_setup_env_preserves_existing_service_values 151 The setdefault-based keys are not clobbered when already set.
function test_setup_env_always_overwrites_provider_and_unbuffered 176
function test_main_completed_status_returns_zero 194
function test_main_prints_tool_call_trace 211 Exercises the tool-call trace print loop (real edit_file dispatch).
function test_main_error_status_returns_one 251
function test_main_writes_trace_out_json 266