Excluded from coverage code I'm not currently using.

This commit is contained in:
SET 2020-08-14 19:57:12 -03:00
parent 422f8b134a
commit 094e821395
1 changed files with 2 additions and 1 deletions

View File

@ -1101,7 +1101,8 @@ class Schematic(object):
""" A list of all the components. """
if exclude_power:
components = [c for c in self.components if not c.is_power]
else:
else: # pragma: no cover
# Currently unused
components = [c for c in self.components]
for sch in self.sheets:
components.extend(sch.sheet.get_components(exclude_power))