Tighten PCB findings: actions, stitch gating, real copper.
Fill action on every finding and show it in the report. Stitch/return only on large HS/power nets. Parse stackup thickness, arcs, and vias from the board. IC courtyard pad copper is not PE-PLC-004 RULE. Recommended RC/cap stay REVIEW.
This commit is contained in:
@@ -133,3 +133,26 @@ def test_same_object_pcb_and_schema():
|
||||
assert obj.finding_class
|
||||
assert obj.provenance
|
||||
assert obj.evidence_status
|
||||
assert (obj.action or "").strip()
|
||||
|
||||
|
||||
def test_empty_recommendation_gets_action():
|
||||
f = Finding(designator="U1", finding="note", status="INFO", source="review")
|
||||
complete_finding(f)
|
||||
assert f.action.strip()
|
||||
assert f.recommendation.strip() == f.action.strip()
|
||||
|
||||
|
||||
def test_recommended_rc_cap_is_review_not_rule():
|
||||
f = Finding(
|
||||
designator="C1",
|
||||
finding="10n vs 100n",
|
||||
why="datasheet typical 100n",
|
||||
status="WARNING",
|
||||
rule_id="PE-DEC-002",
|
||||
source="passive_rail_check",
|
||||
)
|
||||
complete_finding(f)
|
||||
assert f.finding_class == "REVIEW"
|
||||
assert f.provenance == "RECOMMENDED"
|
||||
assert f.status != "ERROR"
|
||||
|
||||
Reference in New Issue
Block a user