test/functional/combine_logs.py
def print_logs_html(log_events):
    """Renders the iterator of log events into html."""
    try:
        import jinja2
    except ImportError:
        print("jinja2 not found. Try `pip install jinja2`")
        sys.exit(1)
    print(jinja2.Environment(loader=jinja2.FileSystemLoader('./'))
                    .get_template('combined_log_template.html')
                    .render(title="Combined Logs from testcase", log_events=[event._asdict() for event in log_events]))
Renders the iterator of log events into html.
Renders the iterator of log events into html.
Renders the iterator of log events into html .
def print_logs_html(log_events):
    try:
        import jinja2
    except ImportError:
        print("jinja2 not found. Try `pip install jinja2`")
        sys.exit(1)
    print(jinja2.Environment(loader=jinja2.FileSystemLoader('./'))
                    .get_template('combined_log_template.html')
                    .render(title="Combined Logs from testcase", log_events=[event._asdict() for event in log_events]))
def print_logs_html ( log_events ) : try : import jinja2 except ImportError : print ( "jinja2 not found. Try `pip install jinja2`" ) sys . exit ( 1 ) print ( jinja2 . Environment ( loader = jinja2 . FileSystemLoader ( './' ) ) . get_template ( 'combined_log_template.html' ) . render ( title = "Combined Logs from testcase" , log_events = [ event . _asdict ( ) for event in log_events ] ) )
Renders the iterator of log events into html.
Renders the iterator of log events into html .
"""Renders the iterator of log events into html."""
log_events