Orchestrata Ultimate › Tests › Reference › scripts › test_check_spec_authority

Tests reference — tests/scripts/test_check_spec_authority.py

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

Prose pending.

tests/scripts/test_check_spec_authority.py

source · 19 tests · 400 lines

Tests for scripts/check_spec_authority.py — the RUL-013 spec-authority gate.

Covers: core.base.traces

Kind Name Line Description
function test_fabricated_id_on_a_test_function_fails_the_gate 118
function test_grounded_id_on_a_test_function_passes 135
function test_clean_corpus_with_no_traces_passes 148
function test_fixture_class_exercising_the_decorator_is_not_flagged 162 A class defined to prove the @traces validator accepts/rejects input has
function test_test_prefixed_class_is_still_in_scope 176 Test* classes ARE pytest-collected, so they are in scope — the
function test_real_id_with_a_stale_spec_label_is_not_flagged 189 spec-mismatch: the id is REAL, only the decorator's spec= label
function test_prose_only_spec_grounds_its_ids 209 The load-bearing hardening: an id documented as PROSE in spec.md,
function test_src_lane_is_out_of_scope 236 RUL-013's distinctive clause is "never from a TEST". src carries its own
function test_req_ids_in_prose_are_never_flagged 251 Only real decorator nodes are read — docstrings, comments and string
function test_placeholder_and_malformed_ids_are_other_gates_business 270 placeholder (REQ-000-000) and malformed are format concerns owned
function test_absent_roots_are_tolerated 290
function test_ratchet_tolerates_exactly_max_and_fires_on_the_next 303
function test_json_output_carries_every_violation 313
function test_violations_are_reported_in_stable_order 333
function test_is_test_symbol_discriminates_pytest_collected_names 353
function test_broad_ground_truth_reads_every_markdown_in_the_corpus 362
function test_broad_ground_truth_on_a_missing_dir_is_empty 379
function test_gate_directive_resolves_under_the_rulings_lint_grammar 383 - gate scripts/check_spec_authority.py RUL-013 requires the script to
function test_toolkit_path_is_independent_of_the_scanned_repo 393 The gate must lint a throwaway corpus with the REAL toolkit — resolving