test_nothing_stated_changes_nothing

Tests › tests/test_buildoptions.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE CONTROL ON THE WHOLE SURFACE. Every caller that does not care about options forwards its own optional argument, so if this path assigned anything — a default, an empty list — it would silently replace the target's declaration on every ordinary refresh. That is the exact shape of the `exclude=None` bug this repo already fixed one layer up, where normalising None to [] turned every refresh into a withdrawal.

Verifies REQ-DDB-CONFIG-008

Given

  1. —
→

When

  1. for stated in (None, {}): args = _args() assert bo.apply_options(args, stated, Path("/repo")) == [] assert args.entry_patterns is None assert not hasattr(args, "event_tags")
→

Then

  1. —

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

What it checks (3)

  1. assert bo.apply_options(args, stated, Path("/repo")) == [] observes apply_options
  2. assert args.entry_patterns is None observes _args via args
  3. assert not hasattr(args, "event_tags") observes _args via args

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_nothing_stated_changes_nothing→_args→apply_options

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