Orchestrata Ultimate › Tests › Reference › scripts › test_gen_intent_lexicon

Tests reference — tests/scripts/test_gen_intent_lexicon.py

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

Prose pending.

tests/scripts/test_gen_intent_lexicon.py

source · 10 tests · 141 lines

Tests for scripts/gen_intent_lexicon.py — the L-D2 intent-lexicon generator.

Covers: core.base.traces, orchestrator.intent_vocabulary

Kind Name Line Description
function test_render_is_deterministic 40 Same input (the real vocabulary) -> byte-identical output every call.
function test_render_includes_every_work_type_keyword 46 L-D2 real parity: every default work_type keyword must be emitted —
function test_render_includes_every_target_keyword 75
function test_render_has_generated_file_header 85
function test_render_facts_are_grouped_by_lexicon_kind 92 Decisive work-type facts, then generic verbs, then targets (stable
function test_check_matches_committed_file 101 The committed intent_lexicon.gen.pl must be in sync (the drift gate's
class TestMainCheck 113
method TestMainCheck.test_check_missing_file_returns_1 114
method TestMainCheck.test_check_stale_file_returns_1 119
method TestMainCheck.test_check_up_to_date_returns_0 126
method TestMainCheck.test_main_without_check_writes_file 133