Orchestrata Ultimate › Tests › Reference › scripts › test_gen_level0

Tests reference — tests/scripts/test_gen_level0.py

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

Prose pending.

tests/scripts/test_gen_level0.py

source · 16 tests · 210 lines

Tests for scripts/gen_level0.py — the Level-0 always-in-context generator.

Kind Name Line Description
function test_render_states_infra_is_not_docker 45 The #1 failure this exists to prevent: assuming the graphs are docker/localhost.
function test_render_maps_the_two_graphs_distinctly 53 The operational KG and the shared semantic graph must never read as one.
function test_render_lists_endpoints_from_env 74
function test_render_never_leaks_a_secret_from_dotenv 83 Secrets stay in .env; the committed L0 map must not embed them.
function test_render_includes_tool_and_volk_inventory 112
function test_tool_names_are_unique_and_from_dispatch 124
function test_check_matches_committed_file 130 The committed docs/LEVEL0.md must be in sync (the drift gate's own contract).
class TestMissingSources 137 Every source is optional — absence degrades gracefully, never crashes.
method TestMissingSources.test_env_empty_when_file_absent 140
method TestMissingSources.test_tool_names_empty_when_dispatch_absent 145
method TestMissingSources.test_volks_empty_when_dir_absent 151
class TestNoSessionState 156 The generated file must derive from REPO state only.
method TestNoSessionState.test_generator_has_no_context_json_input 168 Structural: the module exposes no context.json path constant and no
method TestNoSessionState.test_goal_line_points_at_live_injection 176
class TestMainCheck 182
method TestMainCheck.test_check_missing_file_returns_1 183
method TestMainCheck.test_check_stale_file_returns_1 188
method TestMainCheck.test_check_up_to_date_returns_0 195
method TestMainCheck.test_main_without_check_writes_file 202