test_nothing_stated_changes_nothing¶
Tests › tests/test_buildoptions.py
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
- —
When
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
- —
tests/test_buildoptions.py:66 · its file's page
What it checks (3)
assert bo.apply_options(args, stated, Path("/repo")) == []observesapply_optionsassert args.entry_patterns is Noneobserves_argsviaargsassert not hasattr(args, "event_tags")observes_argsviaargs
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_optionsWhat 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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-008 | catalog | unknown |