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
@@ -176,7 +176,7 @@ class NativeTests(unittest.TestCase):
|
||||
self.assertEqual(promoted, [{"uid": "uid", "number": "1"}])
|
||||
self.assertEqual(select.call_args_list, [call(component, True), call(component, False)])
|
||||
|
||||
def test_part_label_is_only_required_by_part_label_value_mode(self):
|
||||
def test_missing_part_label_is_permitted_for_snapshot_value_fallback(self):
|
||||
component = type("Component", (), {"UID": "uid", "Refdes": "R1"})()
|
||||
records = [["C", "uid", "R1"]]
|
||||
|
||||
@@ -185,8 +185,7 @@ class NativeTests(unittest.TestCase):
|
||||
|
||||
with patch.object(native, "attribute_value", side_effect=value):
|
||||
self.assertEqual(native.replacement_matches([component], records, "NEW", False), ["uid"])
|
||||
with self.assertRaisesRegex(ValueError, "Part Label readback failed"):
|
||||
native.replacement_matches([component], records, "NEW", True)
|
||||
self.assertEqual(native.replacement_matches([component], records, "NEW", True), ['uid'])
|
||||
|
||||
self.assertEqual(native.snapshot_value_mode(["M", "project", "OLD", "NEW", "sheet"]), "part_label")
|
||||
self.assertEqual(native.snapshot_value_mode(["M", "project", "OLD", "NEW", "sheet", "custom"]), "custom")
|
||||
|
||||
Reference in new issue
Block a user