test_provision_writes_a_record_naming_the_build

Tests › tests/test_acceptance_identity.py

passed Passed in the packaged run.

What this test is for

Why it exists

`build_version` WAS READ AND ONLY PRINTED. It survived a run only if the operator redirected stdout, and the database that carries it is gitignored on purpose. So the one number describing the index under test reached no committed file.

Given

  1. rubric = load( Path(__file__).resolve().parent.parent / "acceptance/targets/mbedtls/questions.yaml" )
  2. out = tmp_path / "provision.json"
→

When

  1. provision.write_provision_record( rubric, tmp_path / "clew.db", {"build_version": "8", "tool.substrate_version": "0.11.2"}, out, )
  2. got = json.loads(out.read_text())
→

Then

  1. ✓ got["commit"] equals rubric.commit
  2. ✓ got["build_version"] equals "8"
  3. ✓ got contains "substrate_languages"
  4. ✓ got["clew_build_version"] equals str(identity.CLEW_BUILD_VERSION)

tests/test_acceptance_identity.py:81 · its file's page

What it checks (4)

  1. assert got["commit"] == rubric.commit not attributed
  2. assert got["build_version"] == "8" not attributed
  3. assert "substrate_languages" in got not attributed
  4. assert got["clew_build_version"] == str(identity.CLEW_BUILD_VERSION) not attributed

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_provision_writes_a_record_naming_the_build→write_provision_record

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_provision_writes_a_record_naming_the_build · 4 checkswrite_provision_recordtool_identity_substratecompiled_languagesREQ-DDB-PIPE-012 · inferred
Also reaches 1 requirement

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