test_the_schema_contract_names_the_file_and_section¶
Tests › tests/test_guard_config_index.py
What this test is for
Given
- —
When
contract = build_schema_contract()
Then
- ✓ contract["config_file"] equals CONFIG_FILE_NAME
- ✓ contract["config_section"] equals CONFIG_SECTION
- ✓ contract does not contain "passthrough_prefix"
tests/test_guard_config_index.py:118 · its file's page
What it checks (3)
assert contract["config_file"] == CONFIG_FILE_NAMEobservesbuild_schema_contractviacontractassert contract["config_section"] == CONFIG_SECTIONobservesbuild_schema_contractviacontractassert "passthrough_prefix" not in contractobservesbuild_schema_contractviacontract
Where the product reaches it
main→_run→_dispatch_subcommand→_run_config_command→build_schema_contract(flow)
Call flow
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-001 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-015 measured