Excluded from coverage the last line of the with document block
This isn't recorded as executed and I don't know how to inform to coverage that this is executed. SO I'm just excluding them.
This commit is contained in:
parent
7726732df9
commit
f70e484780
|
|
@ -20,7 +20,7 @@ class AnyDrill(BaseOutput):
|
||||||
""" [string=None] format for a graphical drill map. The valid formats are hpgl, ps, gerber, dxf, svg and pdf.
|
""" [string=None] format for a graphical drill map. The valid formats are hpgl, ps, gerber, dxf, svg and pdf.
|
||||||
Not generated unless a format is specified """
|
Not generated unless a format is specified """
|
||||||
self._report = None
|
self._report = None
|
||||||
""" [string=None] name of the drill report. Not generated unless a name is specified """
|
""" [string=None] name of the drill report. Not generated unless a name is specified """ # pragma: no cover
|
||||||
# Mappings to KiCad values
|
# Mappings to KiCad values
|
||||||
self._map_map = {
|
self._map_map = {
|
||||||
'hpgl': PLOT_FORMAT_HPGL,
|
'hpgl': PLOT_FORMAT_HPGL,
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class AnyLayer(BaseOutput):
|
||||||
self.force_plot_invisible_refs_vals = False
|
self.force_plot_invisible_refs_vals = False
|
||||||
""" include references and values even when they are marked as invisible """
|
""" include references and values even when they are marked as invisible """
|
||||||
self.tent_vias = True
|
self.tent_vias = True
|
||||||
""" cover the vias """
|
""" cover the vias """ # pragma: no cover
|
||||||
# Mappings to KiCad values
|
# Mappings to KiCad values
|
||||||
self._drill_marks_map = {
|
self._drill_marks_map = {
|
||||||
'none': PCB_PLOT_PARAMS.NO_DRILL_SHAPE,
|
'none': PCB_PLOT_PARAMS.NO_DRILL_SHAPE,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class DXF(AnyLayer):
|
||||||
self.polygon_mode = True
|
self.polygon_mode = True
|
||||||
""" plot using the contour, instead of the center line """
|
""" plot using the contour, instead of the center line """
|
||||||
self.sketch_plot = False
|
self.sketch_plot = False
|
||||||
""" don't fill objects, just draw the outline """
|
""" don't fill objects, just draw the outline """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def drill_marks(self):
|
def drill_marks(self):
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class Excellon(AnyDrill):
|
||||||
self.minimal_header = False
|
self.minimal_header = False
|
||||||
""" use a minimal header in the file """
|
""" use a minimal header in the file """
|
||||||
self.mirror_y_axis = False
|
self.mirror_y_axis = False
|
||||||
""" invert the Y axis """
|
""" invert the Y axis """ # pragma: no cover
|
||||||
|
|
||||||
def _configure_writer(self, board, offset):
|
def _configure_writer(self, board, offset):
|
||||||
drill_writer = EXCELLON_WRITER(board)
|
drill_writer = EXCELLON_WRITER(board)
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,7 @@ class Gerber(AnyLayer):
|
||||||
self.use_gerber_x2_attributes = True
|
self.use_gerber_x2_attributes = True
|
||||||
""" use the extended X2 format """
|
""" use the extended X2 format """
|
||||||
self.use_gerber_net_attributes = True
|
self.use_gerber_net_attributes = True
|
||||||
""" include netlist metadata """
|
""" include netlist metadata """ # pragma: no cover
|
||||||
# print("Help for self.use_aux_axis_as_origin: "+self._help_use_aux_axis_as_origin)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def gerber_precision(self):
|
def gerber_precision(self):
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ class HPGL(AnyLayer):
|
||||||
self._drill_marks = 'full'
|
self._drill_marks = 'full'
|
||||||
""" what to use to indicate the drill places, can be none, small or full (for real scale) """
|
""" what to use to indicate the drill places, can be none, small or full (for real scale) """
|
||||||
self.pen_width = 0.5
|
self.pen_width = 0.5
|
||||||
""" pen diameter in MILS, useful to fill areas. However, it is in mm in HPGL files """
|
""" pen diameter in MILS, useful to fill areas. However, it is in mm in HPGL files """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def drill_marks(self):
|
def drill_marks(self):
|
||||||
return self._drill_marks
|
return self._drill_marks
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class IBoM(BaseOutput): # noqa: F821
|
||||||
self.blacklist = ''
|
self.blacklist = ''
|
||||||
""" regular expression for the components to exclude (using the Config field) """
|
""" regular expression for the components to exclude (using the Config field) """
|
||||||
self.name_format = 'ibom'
|
self.name_format = 'ibom'
|
||||||
""" format of the output name, example: %f_%r_iBoM will generate a file with revision and _iBoM """
|
""" format of the output name, example: %f_%r_iBoM will contain the revision and _iBoM """ # pragma: no cover
|
||||||
|
|
||||||
def run(self, output_dir, board):
|
def run(self, output_dir, board):
|
||||||
check_script(CMD_IBOM, URL_IBOM)
|
check_script(CMD_IBOM, URL_IBOM)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class KiBoM(BaseOutput): # noqa: F821
|
||||||
# Options
|
# Options
|
||||||
with document:
|
with document:
|
||||||
self._format = 'HTML'
|
self._format = 'HTML'
|
||||||
""" can be `HTML` or `CSV` """
|
""" can be `HTML` or `CSV` """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def format(self):
|
def format(self):
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class PDF(AnyLayer):
|
||||||
self.negative_plot = False
|
self.negative_plot = False
|
||||||
""" invert black and white """
|
""" invert black and white """
|
||||||
self._drill_marks = 'full'
|
self._drill_marks = 'full'
|
||||||
""" what to use to indicate the drill places, can be none, small or full (for real scale) """
|
""" what to use to indicate the drill places, can be none, small or full (for real scale) """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def drill_marks(self):
|
def drill_marks(self):
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class PDF_Pcb_Print(BaseOutput): # noqa: F821
|
||||||
# Options
|
# Options
|
||||||
with document:
|
with document:
|
||||||
self.output_name = ''
|
self.output_name = ''
|
||||||
""" filename for the output PDF (the name of the PCB if empty) """
|
""" filename for the output PDF (the name of the PCB if empty) """ # pragma: no cover
|
||||||
|
|
||||||
def config(self, outdir, options, layers):
|
def config(self, outdir, options, layers):
|
||||||
super().config(outdir, options, layers)
|
super().config(outdir, options, layers)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class PDF_Sch_Print(BaseOutput): # noqa: F821
|
||||||
# Options
|
# Options
|
||||||
with document:
|
with document:
|
||||||
self.output = ''
|
self.output = ''
|
||||||
""" filename for the output PDF (the name of the schematic if empty) """
|
""" filename for the output PDF (the name of the schematic if empty) """ # pragma: no cover
|
||||||
|
|
||||||
def run(self, output_dir, board):
|
def run(self, output_dir, board):
|
||||||
check_eeschema_do()
|
check_eeschema_do()
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class Position(BaseOutput): # noqa: F821
|
||||||
self.only_smd = True
|
self.only_smd = True
|
||||||
""" only include the surface mount components """
|
""" only include the surface mount components """
|
||||||
self._units = 'millimeters'
|
self._units = 'millimeters'
|
||||||
""" can be millimeters or inches """
|
""" can be millimeters or inches """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def format(self):
|
def format(self):
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class PS(AnyLayer):
|
||||||
""" this width factor is intended to compensate PS printers/plotters that do not strictly obey line width settings.
|
""" this width factor is intended to compensate PS printers/plotters that do not strictly obey line width settings.
|
||||||
Only used to plot pads and tracks """
|
Only used to plot pads and tracks """
|
||||||
self.a4_output = True
|
self.a4_output = True
|
||||||
""" force A4 paper size """
|
""" force A4 paper size """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def drill_marks(self):
|
def drill_marks(self):
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class STEP(BaseOutput): # noqa: F821
|
||||||
self.min_distance = -1
|
self.min_distance = -1
|
||||||
""" the minimum distance between points to treat them as separate ones (-1 is KiCad default: 0.01 mm) """
|
""" the minimum distance between points to treat them as separate ones (-1 is KiCad default: 0.01 mm) """
|
||||||
self.output = ''
|
self.output = ''
|
||||||
""" name for the generated STEP file (the name of the PCB if empty) """
|
""" name for the generated STEP file (the name of the PCB if empty) """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def origin(self):
|
def origin(self):
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class SVG(AnyLayer):
|
||||||
self.negative_plot = False
|
self.negative_plot = False
|
||||||
""" invert black and white """
|
""" invert black and white """
|
||||||
self._drill_marks = 'full'
|
self._drill_marks = 'full'
|
||||||
""" what to use to indicate the drill places, can be none, small or full (for real scale) """
|
""" what to use to indicate the drill places, can be none, small or full (for real scale) """ # pragma: no cover
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def drill_marks(self):
|
def drill_marks(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue