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:
Salvador E. Tropea 2020-06-26 14:46:09 -03:00
parent 7726732df9
commit f70e484780
15 changed files with 16 additions and 16 deletions

View File

@ -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.
Not generated unless a format is specified """
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
self._map_map = {
'hpgl': PLOT_FORMAT_HPGL,

View File

@ -28,7 +28,7 @@ class AnyLayer(BaseOutput):
self.force_plot_invisible_refs_vals = False
""" include references and values even when they are marked as invisible """
self.tent_vias = True
""" cover the vias """
""" cover the vias """ # pragma: no cover
# Mappings to KiCad values
self._drill_marks_map = {
'none': PCB_PLOT_PARAMS.NO_DRILL_SHAPE,

View File

@ -22,7 +22,7 @@ class DXF(AnyLayer):
self.polygon_mode = True
""" plot using the contour, instead of the center line """
self.sketch_plot = False
""" don't fill objects, just draw the outline """
""" don't fill objects, just draw the outline """ # pragma: no cover
@property
def drill_marks(self):

View File

@ -19,7 +19,7 @@ class Excellon(AnyDrill):
self.minimal_header = False
""" use a minimal header in the file """
self.mirror_y_axis = False
""" invert the Y axis """
""" invert the Y axis """ # pragma: no cover
def _configure_writer(self, board, offset):
drill_writer = EXCELLON_WRITER(board)

View File

@ -30,8 +30,7 @@ class Gerber(AnyLayer):
self.use_gerber_x2_attributes = True
""" use the extended X2 format """
self.use_gerber_net_attributes = True
""" include netlist metadata """
# print("Help for self.use_aux_axis_as_origin: "+self._help_use_aux_axis_as_origin)
""" include netlist metadata """ # pragma: no cover
@property
def gerber_precision(self):

View File

@ -23,7 +23,8 @@ class HPGL(AnyLayer):
self._drill_marks = 'full'
""" what to use to indicate the drill places, can be none, small or full (for real scale) """
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
def drill_marks(self):
return self._drill_marks

View File

@ -22,7 +22,7 @@ class IBoM(BaseOutput): # noqa: F821
self.blacklist = ''
""" regular expression for the components to exclude (using the Config field) """
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):
check_script(CMD_IBOM, URL_IBOM)

View File

@ -22,7 +22,7 @@ class KiBoM(BaseOutput): # noqa: F821
# Options
with document:
self._format = 'HTML'
""" can be `HTML` or `CSV` """
""" can be `HTML` or `CSV` """ # pragma: no cover
@property
def format(self):

View File

@ -22,7 +22,7 @@ class PDF(AnyLayer):
self.negative_plot = False
""" invert black and white """
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
def drill_marks(self):

View File

@ -21,7 +21,7 @@ class PDF_Pcb_Print(BaseOutput): # noqa: F821
# Options
with document:
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):
super().config(outdir, options, layers)

View File

@ -20,7 +20,7 @@ class PDF_Sch_Print(BaseOutput): # noqa: F821
# Options
with document:
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):
check_eeschema_do()

View File

@ -22,7 +22,7 @@ class Position(BaseOutput): # noqa: F821
self.only_smd = True
""" only include the surface mount components """
self._units = 'millimeters'
""" can be millimeters or inches """
""" can be millimeters or inches """ # pragma: no cover
@property
def format(self):

View File

@ -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.
Only used to plot pads and tracks """
self.a4_output = True
""" force A4 paper size """
""" force A4 paper size """ # pragma: no cover
@property
def drill_marks(self):

View File

@ -31,7 +31,7 @@ class STEP(BaseOutput): # noqa: F821
self.min_distance = -1
""" the minimum distance between points to treat them as separate ones (-1 is KiCad default: 0.01 mm) """
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
def origin(self):

View File

@ -22,7 +22,7 @@ class SVG(AnyLayer):
self.negative_plot = False
""" invert black and white """
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
def drill_marks(self):