Stamp 2.60.0 incomplete PCB exam and owner project delete.
Partial layouts still use MODE=pcb. Missing copper is INSUFFICIENT or
skipped, never Euclidean stand-in tracks. Via≠Pad unchanged. DELETE
/api/projects/{id} is owner-only with a dashboard confirm dialog.
This commit is contained in:
@@ -186,10 +186,13 @@ def _x1_c9_layout(*, segments=None, cap_x: float = 0.5):
|
||||
|
||||
def test_crystal_load_cap_beyond_max_distance_mm_is_ps_plc_001():
|
||||
limit = 2.0
|
||||
segs = [
|
||||
LayoutSegment(start=(0.0, 0.0), end=(10.0, 0.0), width=0.2, layer="F.Cu", net="/HFXIN"),
|
||||
]
|
||||
findings = check_placement(
|
||||
_graph(),
|
||||
_xtal_cons(max_distance_mm=limit),
|
||||
_x1_c9_layout(cap_x=10.0),
|
||||
_x1_c9_layout(cap_x=10.0, segments=segs),
|
||||
)
|
||||
plc = [f for f in findings if f.rule_id == "PE-PLC-001"]
|
||||
assert len(plc) == 1
|
||||
@@ -198,13 +201,29 @@ def test_crystal_load_cap_beyond_max_distance_mm_is_ps_plc_001():
|
||||
|
||||
|
||||
def test_crystal_load_cap_within_max_distance_mm_is_silent():
|
||||
segs = [
|
||||
LayoutSegment(start=(0.0, 0.0), end=(0.5, 0.0), width=0.2, layer="F.Cu", net="/HFXIN"),
|
||||
]
|
||||
assert check_placement(
|
||||
_graph(),
|
||||
_xtal_cons(max_distance_mm=2.0),
|
||||
_x1_c9_layout(cap_x=0.5),
|
||||
_x1_c9_layout(cap_x=0.5, segments=segs),
|
||||
) == []
|
||||
|
||||
|
||||
def test_unrouted_crystal_cap_is_insufficient_not_euclidean():
|
||||
findings = check_placement(
|
||||
_graph(),
|
||||
_xtal_cons(max_distance_mm=2.0),
|
||||
_x1_c9_layout(cap_x=10.0),
|
||||
)
|
||||
assert all(f.rule_id != "PE-PLC-001" for f in findings)
|
||||
insuf = [f for f in findings if f.rule_id == "PE-PLC-005"]
|
||||
assert len(insuf) == 1
|
||||
assert insuf[0].evidence_status == "INSUFFICIENT"
|
||||
assert insuf[0].status == "INFO"
|
||||
|
||||
|
||||
def test_track_path_longer_than_max_distance_mm_is_ps_plc_001():
|
||||
limit = 2.0
|
||||
segs = [
|
||||
|
||||
Reference in New Issue
Block a user