test_false_default_is_not_zero

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

What this test is for

Why it exists

A boolean default and a numeric zero default are different facts about a key, and `str(False)` is not `"0"`. The `Threshold` key's default IS `0`, so the two appear in one fixture and a coercion that flattened them together is visible.

Given

  1. path = tmp_path / "widgetbus.toml"
  2. path.write_text(MANIFEST, encoding="utf-8")
→

When

  1. keys = parse_ingot_manifest(path, tmp_path)
  2. by_id = {k.key_id: k.default_value for k in keys}
→

Then

  1. ✓ keys is not None
  2. ✓ by_id["Is_Charging"] equals "False"
  3. ✓ by_id["Threshold"] equals "0"

tests/test_datamodel.py:293 · its file's page

What it checks (3)

  1. assert keys is not None observes parse_ingot_manifest via keys
  2. assert by_id["Is_Charging"] == "False" not attributed
  3. assert by_id["Threshold"] == "0" 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_false_default_is_not_zero→parse_ingot_manifest

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_false_default_is_not_zero · 3 checksparse_ingot_manifestrel_keyREQ-DDB-PIPE-003 · measuredparse_ingot_manifestREQ-DDB-SCHEMA-013 · measured
Also reaches 2 requirements

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