test_parser_defaults

Tests › tests/test_init.py

passed Passed in the packaged run.

What this test is for

Why it exists

`--force`, `--yes` and `--dry-run` default off in the safe direction: nothing is replaced, nothing is written to a curated file unasked, and nothing is hidden.

Given

  1. —
→

When

  1. args = init_command.build_parser().parse_args([])
→

Then

  1. ✓ args.scope equals INIT_SCOPE_REPO
  2. ✓ args.repo_root equals "."
  3. ✓ args.force is False
  4. ✓ args.dry_run is False

tests/test_init.py:1328 · its file's page

What it checks (4)

  1. assert args.scope == INIT_SCOPE_REPO observes build_parser via args
  2. assert args.repo_root == "." observes build_parser via args
  3. assert args.force is False observes build_parser via args
  4. assert args.dry_run is False observes build_parser via args

Where the product reaches it

  • main → propose_main → build_parser (flow)

Call flow

test_parser_defaults→build_parser

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_parser_defaults · 4 checksbuild_parserREQ-DDB-CLI-001 · measuredbuild_parserREQ-DDB-CLI-002 · measured
Also reaches 2 requirements

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