Import DxPartReplace 1.2.0-beta.31 and Windows x64 dependencies
This commit is contained in:
1 parent
12895e9868
commit
427095212b
154 files changed
+8079
-267
No files matched your search
@@ -867,16 +867,15 @@ Require QP_App.UndoCount=0,"unchecked Part Label handling triggered rollback"
|
||||
'Comp.RemoveAttribute "Part Label"',
|
||||
'Set Attr=Comp.FindAttribute("Part Label"): Attr.Value="": Attr.InstanceValue=""',
|
||||
])
|
||||
def test_checked_requires_nonblank_target_part_label(tmp_path, part_label_setup):
|
||||
def test_checked_falls_back_when_target_part_label_unavailable(tmp_path, part_label_setup):
|
||||
run_vbs(tmp_path, 'part_label', '''
|
||||
On Error Resume Next
|
||||
QPRestoreAfterOperatorReplace Command,SnapshotPath
|
||||
Failure=Err.Description
|
||||
Err.Clear
|
||||
On Error GoTo 0
|
||||
Require InStr(Failure,"Part Label")>0,"checked mode accepted unavailable Part Label"
|
||||
Require InStr(Failure,"refdes=R1")>0,"Part Label failure omitted the affected refdes"
|
||||
Require QP_App.TransactionCount=0,"invalid Part Label reached restoration transaction"
|
||||
Require Len(Failure)=0,"fallback to original Value failed"
|
||||
Require QPEffectiveComponentAttribute(Comp,"Value")="OLD_VALUE","fallback did not retain original Value"
|
||||
''', after=part_label_setup)
|
||||
|
||||
|
||||
@@ -931,7 +930,7 @@ QPVerifyDisplay Attr,Saved,"R1"
|
||||
after='Comp.RemoveAttribute "Value"')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('source_value', ['NC', 'R0603/NCM', 'R0603/NC_OPTION'])
|
||||
@pytest.mark.parametrize('source_value', ['R0603/NCM', 'R0603/NC_OPTION'])
|
||||
def test_similar_text_is_not_treated_as_nc_marker(tmp_path, source_value):
|
||||
run_vbs(tmp_path, 'preserve', '''
|
||||
QPRestoreAfterOperatorReplace Command,SnapshotPath
|
||||
|
||||
Reference in new issue
Block a user