Orchestrata Ultimate › Tests › Reference › kernel › test_cli
Tests reference — tests/kernel/test_cli.py
Module of tests/kernel, split out because the directory page would be too large.
Prose pending.
tests/kernel/test_cli.py
source · 10 tests · 160 lines
Tests for kernel CLI.
Covers: kernel.cli
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestLoadConfig |
37 | Tests for _load_config helper. |
| method | TestLoadConfig.test_no_path_no_env |
40 | |
| method | TestLoadConfig.test_changeme_sentinel_treated_as_unset |
44 | An unsubstituted .env template (CHANGEME_*) means 'not configured'. |
| method | TestLoadConfig.test_missing_file_raises |
53 | |
| method | TestLoadConfig.test_valid_yaml |
58 | |
| method | TestLoadConfig.test_empty_yaml |
68 | |
| class | TestRunKernelSignalShutdown |
79 | _run_kernel registers real SIGTERM/SIGINT handlers, boots the |
| method | TestRunKernelSignalShutdown.test_full_lifecycle_returns_on_sigterm |
87 | |
| class | TestCLICommands |
101 | Tests for the status/version commands via Click's runner. |
| method | TestCLICommands.test_status |
104 | |
| method | TestCLICommands.test_version |
110 | |
| class | TestMainEntryPoint |
117 | Covers main()'s in-process cli() call — the console_scripts |
| method | TestMainEntryPoint.test_main_invokes_cli_and_exits_zero |
122 | |
| class | TestStartCommandFullBoot |
135 | The start command's full body: logging.basicConfig, |
| method | TestStartCommandFullBoot.test_start_boots_and_shuts_down_cleanly |
141 |