formatters

Formatters module This module provides classes which supports formatters to help with test outputs. See MarkdownFormatter as example

class pygats.formatters.MarkdownFormatter[source]

MD formatter for caption

static print_bold(text)[source]

Print Markdown bold text

Parameters:

text (string) – bold text

static print_code(code)[source]

Print formatted code

Parameters:

code (string) – code snippet to be printed

static print_header(level, text)[source]

Print Markdown header with spaces lines

Parameters:
  • level (int) – Level of header. Count of # in markdown header.

  • text (string) – Header text

static print_img(img_path, text)[source]

Print image path

Parameters:

img_path (string) – path to image

static print_list(text)[source]

Print Markdown unordered list text

Parameters:

text (string) – unordered list text

static print_para(text)[source]

Print Markdown paragraph

Parameters:

text (string) – paragraph text