Ejemplo n.º 1
0
def test_printing():
    printing_string = mock.MagicMock()
    printing_msg_type = mock.MagicMock()
    printing_bcolor = mock.MagicMock()
    printing_space = mock.MagicMock()
    printing_file = mock.MagicMock()
    printing_local_no_color = mock.MagicMock()
    printing(printing_string, printing_msg_type, printing_bcolor,
             printing_space, printing_file, printing_local_no_color)
Ejemplo n.º 2
0
def print_info(string, space=0, file=None, alternate_color=False):

    terminal.printing(
        string,
        terminal.MSG_TYPE.INFO,
        terminal.BCOLORS.INFO,
        space,
        file,
        alternate_color,
    )
Ejemplo n.º 3
0
def print_prompt(string, space=0, file=None):

    terminal.printing(string, terminal.MSG_TYPE.NULL, terminal.BCOLORS.PROMPT,
                      space, file)
Ejemplo n.º 4
0
def print_error(string, space=0, file=None):

    terminal.printing(string, terminal.MSG_TYPE.ERROR, terminal.BCOLORS.ERROR,
                      space, file)
Ejemplo n.º 5
0
def print_warning(string, space=0, file=None):

    terminal.printing(string, terminal.MSG_TYPE.WARNING,
                      terminal.BCOLORS.WARNING, space, file)
Ejemplo n.º 6
0
def print_new_line():

    terminal.printing("", terminal.MSG_TYPE.NULL, terminal.BCOLORS.INFO, 0,
                      None, False)