Orchestrata Ultimate › Tests › Reference › kernel › test_cli_main_extended

Tests reference — tests/kernel/test_cli_main_extended.py

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

Prose pending.

tests/kernel/test_cli_main_extended.py

source · 60 tests · 650 lines

Expanded tests for kernel/cli_main.py — full command coverage.

Covers: kernel.cli_main

Kind Name Line Description
class TestCLIHelp 47 Verify every command and subcommand exposes useful help text.
method TestCLIHelp.test_cli_group_help 56
method TestCLIHelp.test_start_help 60
method TestCLIHelp.test_version_help 66
method TestCLIHelp.test_health_help 70
method TestCLIHelp.test_init_help 75
method TestCLIHelp.test_stop_help 80
method TestCLIHelp.test_status_help 84
method TestCLIHelp.test_config_help 88
method TestCLIHelp.test_config_team_help 92
method TestCLIHelp.test_config_team_remove_help 99
method TestCLIHelp.test_agents_help 105
method TestCLIHelp.test_agents_list_help 109
method TestCLIHelp.test_agents_health_help 113
method TestCLIHelp.test_agents_packets_help 117
method TestCLIHelp.test_reject_help 121
method TestCLIHelp.test_governance_help 126
method TestCLIHelp.test_governance_check_help 130
method TestCLIHelp.test_governance_log_help 134
method TestCLIHelp.test_governance_policies_help 138
method TestCLIHelp.test_verify_help 142
method TestCLIHelp.test_knowledge_help 146
method TestCLIHelp.test_knowledge_query_help 150
method TestCLIHelp.test_session_help 154
class TestStartCommand 164 Tests for the start command — focus on config-path and option parsing.
method TestStartCommand.test_start_missing_config_file 172
method TestStartCommand.test_start_help_shows_all_options 178
class TestHealthCommand 194 Tests for the health command.
method TestHealthCommand.test_health_no_server_running 202 When no health server is listening the command exits with 1.
class TestInitCommand 218
method TestInitCommand.test_init_with_default_template 219
method TestInitCommand.test_init_with_custom_template 229
class TestAgentsCommands 246
method TestAgentsCommands.test_agents_packets 247
class TestSessionGroup 259
method TestSessionGroup.test_session_no_subcommand_shows_help 260
class TestVerifyCommand 272
method TestVerifyCommand.test_verify_without_spec 273
method TestVerifyCommand.test_verify_with_spec 282
class TestKnowledgeCommands 294
method TestKnowledgeCommands.test_knowledge_query 295
class TestRejectCommand 312
method TestRejectCommand.test_reject_with_reason 313
class TestConfigCommands 329
method TestConfigCommands.test_config_team_multiple_volks 330
method TestConfigCommands.test_config_team_remove_multiple 348
class TestGovernanceCommands 372
method TestGovernanceCommands.test_governance_check 373
method TestGovernanceCommands.test_governance_log 381
method TestGovernanceCommands.test_governance_policies 387
class TestLoadConfigExtended 404 Extended coverage for _load_config edge cases.
method TestLoadConfigExtended.test_valid_yaml_with_env_resolution 407
method TestLoadConfigExtended.test_empty_yaml_returns_empty_dict 414
method TestLoadConfigExtended.test_invalid_yaml_raises 420
method TestLoadConfigExtended.test_yaml_with_null_returns_empty_dict 426
class TestResolveEnvVarsExtended 433 Extended coverage for _resolve_env_vars.
method TestResolveEnvVarsExtended.test_integer_unchanged 436
method TestResolveEnvVarsExtended.test_none_unchanged 439
method TestResolveEnvVarsExtended.test_float_unchanged 442
method TestResolveEnvVarsExtended.test_bool_unchanged 445
method TestResolveEnvVarsExtended.test_empty_dict 448
method TestResolveEnvVarsExtended.test_empty_list 451
method TestResolveEnvVarsExtended.test_empty_string 454
method TestResolveEnvVarsExtended.test_deeply_nested_mixed 457
method TestResolveEnvVarsExtended.test_multiple_placeholders_same_string 472
class TestSetupLoggingExtended 482 Extended coverage for _setup_logging.
method TestSetupLoggingExtended.test_json_format_sets_debug_level 485
method TestSetupLoggingExtended.test_text_format_sets_warning_level 494
method TestSetupLoggingExtended.test_json_formatter_output 498
class TestStartHealthServer 525 Start the real FastAPI health server and exercise both endpoints.
method TestStartHealthServer.test_server_starts_and_returns_alive 533
method TestStartHealthServer.test_readiness_before_ready_event 555
method TestStartHealthServer.test_readiness_after_ready_event 582
class TestMainEntryPoint 614 Test main() entry point via subprocess to avoid sys.argv mutation.
method TestMainEntryPoint.test_main_shows_help 617
method TestMainEntryPoint.test_main_version 634