styles.py

Define styles for PETGEM screen-output such as: string formats, headers, and footers.

petgem.base.styles.petgemFooter()[source]

Setup the PETGEM footer to be printed in screen.

petgem.base.styles.petgemHeader()[source]

Setup the PETGEM header to be printed in screen.

petgem.base.styles.set_str_format(in_string, FORMAT=None)[source]

Setup a string with a specific format

Parameters:
  • in_string (str) – string to be formated.
  • format (str) – format to be applied.
Returns:

formated string.

Return type:

str.

Note

valid formats are: Warning, Error, OkGreen and OkBlue

Print the footer of a unitary test.

Parameters:pass_test (bool) – boolean that express if a test is, or not, passed.
petgem.base.styles.test_header(caller)[source]

Print the header of a unitary test.

Parameters:caller (str) – name of caller (test owner).
petgem.base.styles.unitary_test()[source]

Unitary test for styles.py script.