Orchestrata Ultimate › Tests › Reference › kernel › test_cli_main_coverage

Tests reference — tests/kernel/test_cli_main_coverage.py

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

Prose pending.

tests/kernel/test_cli_main_coverage.py

source · 47 tests · 1055 lines

Branch-coverage tests for kernel/cli_main.py.

Covers: agents.volk_registry, core.base.traces, gateway.config, gateway.server, kernel.cli_client, kernel.cli_main, postman.postman, session.session, kernel/ (package)

Kind Name Line Description
class TestEmitHelper 251 _emit renders JSON in --json mode and key: value text otherwise.
method TestEmitHelper.test_emit_json_mode 254
method TestEmitHelper.test_emit_text_mode_without_formatter 259
method TestEmitHelper.test_emit_text_mode_with_formatter 265
class TestFormatIntentResult 270 Every _format_intent_result branch: disambiguation early-return,
method TestFormatIntentResult.test_disambiguation_branch 274
method TestFormatIntentResult.test_dispatched_task_branch 289
method TestFormatIntentResult.test_missing_task_and_thread 303
class TestFormatVerifyResult 310 _format_verify_result: itemized dict rows, non-dict rows via the
method TestFormatVerifyResult.test_specs_list_of_dict_rows 314
method TestFormatVerifyResult.test_requirements_fallback_with_non_dict_row 327
method TestFormatVerifyResult.test_aggregate_dict_fallback 331
class TestFormatStatus 338 _format_status session/volks edge shapes.
method TestFormatStatus.test_empty_session_dict_prints_none 341
method TestFormatStatus.test_non_dict_volks_counts_zero 345
method TestFormatStatus.test_volks_rows_and_session_id 349
class TestValidateVolks 368 _validate_volks rejects unknown aliases loudly (REQ-000-030/031).
method TestValidateVolks.test_invalid_alias_raises 371
method TestValidateVolks.test_valid_aliases_pass_through 377
class TestConfigTeamCommand 386 config team validation + file writes against a real project dir.
method TestConfigTeamCommand.test_no_add_no_remove_raises 389
method TestConfigTeamCommand.test_missing_project_config_raises 396
method TestConfigTeamCommand.test_add_new_volk_writes_yaml_and_team_pl 403
method TestConfigTeamCommand.test_remove_volk 423
class TestInitCommandPaths 441 init — existing directory rejection and graph-unreachable
method TestInitCommandPaths.test_init_existing_directory_fails 445
method TestInitCommandPaths.test_init_continues_when_graph_unreachable 453
class TestStopCommandPaths 485 stop — session archive, live PID termination, stale PID cleanup,
method TestStopCommandPaths.test_stop_archives_unclosed_session 490 REQ-000-017: an unclosed on-disk session is ended by stop.
method TestStopCommandPaths.test_stop_without_session_and_gateway_down 519
method TestStopCommandPaths.test_stop_tolerates_corrupt_session_context 540
method TestStopCommandPaths.test_stop_terminates_live_process 562
method TestStopCommandPaths.test_stop_treats_dead_reaped_pid_as_not_running 589
method TestStopCommandPaths.test_stop_warns_when_process_survives_sigterm 607
class TestStatusCommandPaths 653 status — unreachable gateway, live gateway, per-method errors.
method TestStatusCommandPaths.test_status_gateway_down_text 656
method TestStatusCommandPaths.test_status_gateway_down_json 666
method TestStatusCommandPaths.test_status_running_against_real_gateway 677
method TestStatusCommandPaths.test_status_tolerates_per_method_rpc_errors 685
class TestAgentsCommandPaths 711 agents list / agents health against real wire responses the
method TestAgentsCommandPaths.test_agents_list_empty_roster 715
method TestAgentsCommandPaths.test_agents_health_empty_roster 728
method TestAgentsCommandPaths.test_agents_list_rows_render_task_fallback 741
class TestGatewayBackedCommands 777 Commands that round-trip through a real WebSocketGateway.
method TestGatewayBackedCommands.test_packets_lists_thread_events 780
method TestGatewayBackedCommands.test_intent_text_mode_dispatched 800
method TestGatewayBackedCommands.test_intent_text_mode_needs_disambiguation 831
method TestGatewayBackedCommands.test_intent_json_mode 853
method TestGatewayBackedCommands.test_respond_sends_packet 871
method TestGatewayBackedCommands.test_approve_sends_resolution 882
method TestGatewayBackedCommands.test_review_prints_work_context 893
class TestGovernanceCommandPaths 907 governance log/policies rendering of wire shapes the stock
method TestGovernanceCommandPaths.test_governance_log_lists_decisions 911
method TestGovernanceCommandPaths.test_governance_policies_empty 947
method TestGovernanceCommandPaths.test_governance_policies_mixed_row_types 960
class TestBootDegradationPaths 989 The except degradation branches of the boot steps — boot must log
method TestBootDegradationPaths.test_boot_intent_pipeline_survives_malformed_config 993
method TestBootDegradationPaths.test_boot_intent_broker_survives_bad_redis_db 1005
method TestBootDegradationPaths.test_boot_plugin_system_survives_plugin_load_failure 1020
method TestBootDegradationPaths.test_boot_plugin_system_survives_malformed_plugin_config 1045