Skip to content

Commit

Permalink
test #72 done
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Oct 25, 2024
1 parent 5ff34fc commit 6452786
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pyedb/grpc/edb_core/nets/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tests/grpc/system/test_edb_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 6452786

Please sign in to comment.