#NEWLINE# def _generate_summary_body( self ) : #NEWLINE# #INDENT# summary_stats = [ self . data_source . count_all_tests ( ) , self . data_source . count_all_tests_with_result ( constants . PASSED ) , self . data_source . count_all_tests_with_result ( constants . FAILED ) , self . data_source . count_all_tests_with_result ( constants . SKIPPED ) , self . data_source . get_total_config_exec_time ( ) , self . data_source . get_summary_start_time ( ) , self . data_source . get_summary_end_time ( ) ] #NEWLINE# config_failure_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# config_total_tests_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# config_test_failure_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# config_test_skipped_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# config_test_passed_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for config_name in self . report_info . config_to_test_names_map . keys ( ) : #NEWLINE# #INDENT# config_total_tests_map [ summary_template ] = self . data_source . count_tests ( config_name ) #NEWLINE# config_failure_map [ config_name ] = self . data_source . get_config_result ( config_name ) . result #NEWLINE# config_test_failure_map [ config_name ] = self . data_source . count_tests_with_result ( config_name , constants . FAILED ) #NEWLINE# config_test_skipped_map [ config_name ] = self . data_source . count_tests_with_result ( config_name , constants . SKIPPED ) #NEWLINE# config_test_passed_map [ config_name ] = self . data_source . count_tests_with_result ( config_name , constants . PASSED ) #NEWLINE# #UNINDENT# summary_template = self . env . get_template ( 'landing_page.html' ) #NEWLINE# summary_body = summary_template . render ( report_info = self . report_info , summary = summary_stats , config_fail = config_failure_map , config_fail_map = config_test_failure_map , config_skip_map = config_test_skipped_map , config_tests_map = config_total_tests_map , config_pass_map = config_test_passed_map ) #NEWLINE# return summary_body