test_uncomment_recovers_only_the_marked_lines

Tests › tests/test_propose.py

passed Passed in the packaged run.

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

  1. 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

  1. uncomment(text)
→

Then

  1. ✓ 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)

  1. assert yaml.safe_load(uncomment(text)) == { SECTION_SHARED_KEY: {"writers": [{"name_prefix": "Z_SET_"}]} } observes uncomment

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

test_uncomment_recovers_only_the_marked_lines→uncomment

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_uncomment_recovers_only_the_marked_lines · 1 checksuncommentREQ-DDB-CONFIG-001 · measured
Also reaches 1 requirement

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