diff --git a/tests/grpc/system/test_edb_padstacks.py b/tests/grpc/system/test_edb_padstacks.py index 8f72c5c53b..f4ff72f291 100644 --- a/tests/grpc/system/test_edb_padstacks.py +++ b/tests/grpc/system/test_edb_padstacks.py @@ -376,13 +376,10 @@ def test_padstaks_plot_on_matplotlib(self): assert os.path.exists(local_png4) edb_plot.close() - def test_update_padstacks_after_layer_name_changed(self): - source_path = os.path.join(local_path, "example_models", test_subfolder, "ANSYS-HSD_V1.aedb") - target_path = os.path.join(self.local_scratch.path, "test_padstack_def_update", "ANSYS-HSD_V1.aedb") - self.local_scratch.copyfolder(source_path, target_path) - - edbapp = Edb(target_path, edbversion=desktop_version) - signal_layer_list = [layer for layer in list(edbapp.stackup.layers.values()) if layer.type == "signal"] + def test_update_padstacks_after_layer_name_changed(self, edb_examples): + # Done + edbapp = edb_examples.get_si_verse() + signal_layer_list = list(edbapp.stackup.signal_layers.values()) old_layers = [] for n_layer, layer in enumerate(signal_layer_list): new_name = f"new_signal_name_{n_layer}" @@ -390,8 +387,9 @@ def test_update_padstacks_after_layer_name_changed(self): layer.name = new_name for layer_name in list(edbapp.stackup.layers.keys()): print(f"New layer name is {layer_name}") - for padstack_inst in list(edbapp.padstacks.instances.values()): - assert not [lay for lay in padstack_inst.layer_range_names if lay in old_layers] + for padstack_inst in list(edbapp.padstacks.instances.values())[:100]: + padsatck_layers = padstack_inst.layer_range_names + assert padsatck_layers not in old_layers edbapp.close_edb() def test_hole(self):