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_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