Orchestrata Ultimate › Tests › Reference › scripts › test_agent_check

Tests reference — tests/scripts/test_agent_check.py

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

Prose pending.

tests/scripts/test_agent_check.py

source · 12 tests · 278 lines

Tests for scripts/agent_check.py — the host-side quality-gate checker: it

Kind Name Line Description
function test_get_redis_client_returns_working_client 42
function test_get_redis_client_import_error_exits_1 51 When the redis package can't be imported, get_redis_client prints
function test_wait_for_done_receives_message 71
function test_wait_for_done_timeout_exits_1 92
function test_pull_code_success_overwrites_existing_dest 105
function test_pull_code_failure_nonexistent_task_exits_1 130
function test_run_checks_clean_tree_zero_issues 143
function test_run_checks_dirty_tree_flags_ruff_mypy_and_pytest 162
function test_generate_report_all_sections_present 181
function test_generate_report_more_than_50_errors_truncates 227
function test_generate_report_clean_results_minimal_sections 249
function test_generate_report_pytest_stdout_over_2000_chars_truncated 264