test_an_unknown_document_key_in_an_inline_manifest_is_refused

Tests › tests/test_buildoptions.py

passed Passed in the packaged run.

What this test is for

Why it exists

The singular/plural slip one level in: `writer:` for `writers:` is a valid mapping that no consumer reads, so the build runs entirely on built-in defaults while reporting that the statement was honoured. Same refusal `declaration.load_declaration_located` makes for a section name.

Verifies REQ-DDB-CONFIG-008

Given

  1. —
→

When

  1. bo.apply_options( _args(), {"shared_key_patterns": {"writer": [{"name_prefix": "S_"}]}}, Path("/repo"), )
  2. message = str(caught.value)
→

Then

  1. ✓ raises bo.BuildOptionError
  2. ✓ message contains "'writer'"
  3. ✓ message contains "writers"
  4. ✓ message contains "readers"

tests/test_buildoptions.py:318 · its file's page

What it checks (2)

  1. assert "'writer'" in message not attributed
  2. assert "writers" in message and "readers" in message 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_an_unknown_document_key_in_an_inline_manifest_is_refused→apply_options→_args

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)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-008catalogunknown