Orchestrata Ultimate › Tests › Reference › scripts › test_context_pack_cli

Tests reference — tests/scripts/test_context_pack_cli.py

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

Prose pending.

tests/scripts/test_context_pack_cli.py

source · 11 tests · 228 lines

Tests for scripts/context_pack.py — the SPEC-106 FR-002/003/004/005 CLI.

Kind Name Line Description
function test_id 51 Unique per-test identifier (matches tests/knowledge_graph/conftest.py).
class TestBuildParser 92
method TestBuildParser.test_parses_task_type_target_budget 93
method TestBuildParser.test_output_flag 100
method TestBuildParser.test_invalid_task_type_rejected 106
method TestBuildParser.test_budget_is_required 110
class TestConfigurationError 120
method TestConfigurationError.test_driver_from_env_raises_when_uri_unset 121
method TestConfigurationError.test_main_exits_nonzero_when_uri_unset 125
class TestRunHappyPath 144
method TestRunHappyPath.test_writes_pack_file 145
method TestRunHappyPath.test_prints_to_stdout_without_output_flag 162
class TestKgUnavailable 183
method TestKgUnavailable.test_closed_port_emits_empty_pack_with_reason 184
class TestSysPathBootstrap 203
method TestSysPathBootstrap.test_inserts_repo_src_when_not_already_on_path 204 Subprocess proof, not an in-process one: a genuinely fresh