Orchestrata Ultimate › Tests › Reference › postman › test_cov_cli
Tests reference — tests/postman/test_cov_cli.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_cov_cli.py
source · 12 tests · 242 lines
Coverage tests for postman/cli.py.
Covers: postman.cli
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestLoadConfig |
79 | Test config loading function. |
| method | TestLoadConfig.test_load_from_path |
82 | Load config from an explicit file path. |
| method | TestLoadConfig.test_load_returns_empty_when_no_path |
88 | Return empty dict when no path and no env var. |
| method | TestLoadConfig.test_load_from_env_var |
93 | Load config from ORCHESTRATA_CONFIG env var. |
| method | TestLoadConfig.test_load_nonexistent_raises |
98 | Loading nonexistent file raises ClickException. |
| class | TestCLICommands |
111 | Test CLI commands via CliRunner. |
| method | TestCLICommands.test_status_command |
114 | Status command outputs expected text. |
| method | TestCLICommands.test_version_command |
120 | Version command shows version string. |
| method | TestCLICommands.test_cli_group_help |
126 | CLI group shows help. |
| method | TestCLICommands.test_start_with_nonexistent_config |
132 | Start with nonexistent config file fails. |
| class | TestMainEntryPoint |
138 | Test the main() entry point. |
| method | TestMainEntryPoint.test_main_invokes_cli |
141 | main() is callable and invokes the CLI group. |
| class | TestRunPostmanLifecycle |
152 | Exercise _run_postman's real signal-driven start/stop lifecycle. |
| method | TestRunPostmanLifecycle.test_run_postman_stops_on_sigterm |
155 | _run_postman starts a real Postman, waits on a stop signal, then |
| class | TestStartCommandLifecycle |
191 | Exercise the start command's blocking asyncio.run(...) call. |
| method | TestStartCommandLifecycle.test_start_runs_and_exits_cleanly_on_sigterm |
194 | start blocks in asyncio.run(_run_postman(...)) and returns |
| class | TestMainEntryPointSysArgv |
225 | Exercise main()'s real cli() invocation via sys.argv (not CliRunner). |
| method | TestMainEntryPointSysArgv.test_main_invokes_cli_with_sys_argv |
228 | main() reads sys.argv and dispatches to the click group, exiting 0. |