From 6452786f9c1340978a6623e08f45dad8dbef4550 Mon Sep 17 00:00:00 2001 From: svandenb-dev Date: Fri, 25 Oct 2024 15:29:23 +0200 Subject: [PATCH] test #72 done --- src/pyedb/grpc/edb_core/nets/net.py | 5 ++++- tests/grpc/system/test_edb_nets.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pyedb/grpc/edb_core/nets/net.py b/src/pyedb/grpc/edb_core/nets/net.py index d249b7a507..b2086f39d8 100644 --- a/src/pyedb/grpc/edb_core/nets/net.py +++ b/src/pyedb/grpc/edb_core/nets/net.py @@ -185,4 +185,7 @@ def extended_net(self): >>> app = Edb() >>> app.nets["BST_V3P3_S5"].extended_net """ - return ExtendedNet(self._pedb, self.extended_net) + if self.name in self._pedb.extended_nets.items: + return self._pedb.extended_nets.items[self.name] + else: + return None diff --git a/tests/grpc/system/test_edb_nets.py b/tests/grpc/system/test_edb_nets.py index a8633b9546..a20d9f479e 100644 --- a/tests/grpc/system/test_edb_nets.py +++ b/tests/grpc/system/test_edb_nets.py @@ -44,6 +44,7 @@ def init(self, local_scratch, target_path, target_path2, target_path4): def test_nets_queries(self, edb_examples): """Evaluate nets queries""" + # Done edbapp = edb_examples.get_si_verse() assert len(edbapp.nets.netlist) > 0 signalnets = edbapp.nets.signal @@ -67,7 +68,7 @@ def test_nets_queries(self, edb_examples): assert edbapp.nets.find_or_create_net(start_with="g", end_with="d") assert edbapp.nets.find_or_create_net(end_with="d") assert edbapp.nets.find_or_create_net(contain="usb") - assert edbapp.nets.nets["AVCC_1V3"].extended_net is None + assert not edbapp.nets.nets["AVCC_1V3"].extended_net edbapp.extended_nets.auto_identify_power() assert edbapp.nets.nets["AVCC_1V3"].extended_net edbapp.close()