5555
5656class CIMReportGenerator (object ):
5757 """
58- Generate the Report
58+ Generate the Report.
5959 data format::
6060
6161 [
@@ -67,6 +67,9 @@ class CIMReportGenerator(object):
6767 "status": "pass"/"fail"
6868 }
6969 ]
70+
71+ Args:
72+ data (list): List of dictionaries with specified format.
7073 """
7174
7275 def __init__ (self , data = [], report_class = MarkDownReport ):
@@ -78,7 +81,7 @@ def add_data(self, data):
7881 adds data to object property.
7982
8083 Args:
81- data(list): List of dictionaries with specified format.
84+ data (list): List of dictionaries with specified format.
8285 """
8386 self .data .append (data )
8487
@@ -87,8 +90,8 @@ def _group_by(self, keys, data=None):
8790 Function to generate group of data using Keys provided
8891
8992 Args:
90- keys(list): Contains keys to group data by.
91- data(list): list of dictionaries with specified format.
93+ keys (list): Contains keys to group data by.
94+ data (list): list of dictionaries with specified format.
9295
9396 Yields:
9497 data_set.DataSet: data set object mapped with the tags
@@ -105,8 +108,8 @@ def _get_count_by(self, keys, data=None):
105108 Function to generate count of data using Keys provided
106109
107110 Args:
108- keys(list): Contains keys to generate count by.
109- data(list): list of dictionaries with specified format.
111+ keys (list): Contains keys to generate count by.
112+ data (list): list of dictionaries with specified format.
110113
111114 Yields:
112115 data_set.DataSet: data set object mapped with the tags
@@ -123,7 +126,7 @@ def pass_count(counter):
123126 Function to Get count in Pass/Total format.
124127
125128 Args:
126- counter(collections.Counter): Contains counts of passing/failing Testcases.
129+ counter (collections.Counter): Contains counts of passing/failing Testcases.
127130
128131 Yields:
129132 String: string with pass/total format.
@@ -139,7 +142,7 @@ def fail_count(counter):
139142 Function to Get count in Fail/Total format.
140143
141144 Args:
142- counter(collections.Counter): Contains counts of passing/failing Testcases.
145+ counter (collections.Counter): Contains counts of passing/failing Testcases.
143146
144147 Yields:
145148 String: string with fail/total format.
@@ -231,7 +234,9 @@ def generate_field_summary_table(self):
231234 del field_summary_table
232235
233236 def generate_skip_tests_table (self ):
234- """ """
237+ """
238+ Displays summary of the skipped tests
239+ """
235240 skipped_tests = list (filter (lambda d : d ["status" ] == "skipped" , self .data ))
236241 if skipped_tests :
237242 skipped_tests_table = MarkdownTable (
@@ -255,7 +260,7 @@ def generate_report(self, report_path):
255260 Function to generate report from the stored data.
256261
257262 Args:
258- report_path(string): Path to create the report.
263+ report_path (string): Path to create the report.
259264 """
260265 self .report_generator .set_title ("CIM AUDIT REPORT" )
261266 self .data .sort (
0 commit comments