test_the_schema_contract_names_the_file_and_section

Tests › tests/test_guard_config_index.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-CONFIG-001

Given

  1. —
→

When

  1. contract = build_schema_contract()
→

Then

  1. ✓ contract["config_file"] equals CONFIG_FILE_NAME
  2. ✓ contract["config_section"] equals CONFIG_SECTION
  3. ✓ contract does not contain "passthrough_prefix"

tests/test_guard_config_index.py:118 · its file's page

What it checks (3)

  1. assert contract["config_file"] == CONFIG_FILE_NAME observes build_schema_contract via contract
  2. assert contract["config_section"] == CONFIG_SECTION observes build_schema_contract via contract
  3. assert "passthrough_prefix" not in contract observes build_schema_contract via contract

Where the product reaches it

  • main → _run → _dispatch_subcommand → _run_config_command → build_schema_contract (flow)

Call flow

test_the_schema_contract_names_the_file_and_section→build_schema_contract

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_the_schema_contract_names_the_file_and_section · 3 checksbuild_schema_contractREQ-DDB-GUARD-015 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-001catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.