test_uncomment_recovers_only_the_marked_lines¶
Tests › tests/test_propose.py
What this test is for
Why it exists
The marker exists so prose ABOUT a proposal can never be mistaken for the proposal. Anything else in the file is dropped.
Given
text = "\n".join( [ "# prose that mentions shared_key_patterns: and must not be parsed", YAML_MARKER + "shared_key_patterns:", YAML_MARKER + " writers:", YAML_MARKER + ' - name_prefix: "Z_SET_"', "# ── NOTES ──", ] )
When
uncomment(text)
Then
- ✓ yaml.safe_load(uncomment(text)) equals { SECTION_SHARED_KEY: {"writers": [{"name_prefix": "Z_SET_"}]} }
tests/test_propose.py:632 · its file's page
What it checks (1)
assert yaml.safe_load(uncomment(text)) == { SECTION_SHARED_KEY: {"writers": [{"name_prefix": "Z_SET_"}]} }observesuncomment
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured