test_the_hook_and_the_store_share_the_pending_key

Tests › tests/test_hook.py

passed Passed in the packaged run.

What this test is for

Why it exists

The hook and the store agree on a repository's pending key.

Given

  1. repo = tmp_path / "repo"
  2. repo.mkdir()
→

When

  1. hook._comment_key(str(repo))
  2. pending_key(str(repo))
→

Then

  1. ✓ hook._comment_key(str(repo)) equals pending_key(str(repo))

tests/test_hook.py:1526 · its file's page

What it checks (1)

  1. assert hook._comment_key(str(repo)) == pending_key(str(repo)) observes _comment_key

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_the_hook_and_the_store_share_the_pending_key→pending_key→_comment_key

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_hook_and_the_store_share_the_pending_key · 1 checkspending_keyREQ-DDB-WIKI-054 · measured
Also reaches 1 requirement

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