mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
whitespace changes after autopep8
This commit is contained in:
@@ -57,8 +57,6 @@ class HttpDownload(Realm):
|
||||
self.http_profile.debug = _debug_on
|
||||
self.created_cx = {}
|
||||
|
||||
|
||||
|
||||
def set_values(self):
|
||||
# This method will set values according user input
|
||||
if self.bands == "5G":
|
||||
@@ -217,7 +215,7 @@ class HttpDownload(Realm):
|
||||
for i in download_time:
|
||||
try:
|
||||
download_time[i] = result_data[i]['dl_time']
|
||||
except:
|
||||
except BaseException:
|
||||
download_time[i] = []
|
||||
print(download_time)
|
||||
lst = []
|
||||
@@ -259,7 +257,7 @@ class HttpDownload(Realm):
|
||||
for i in speed:
|
||||
try:
|
||||
speed[i] = result_data[i]['speed']
|
||||
except:
|
||||
except BaseException:
|
||||
speed[i] = []
|
||||
print(speed)
|
||||
lst = []
|
||||
@@ -474,7 +472,8 @@ class HttpDownload(Realm):
|
||||
graph_png = graph_2.build_bar_graph()
|
||||
return graph_png
|
||||
|
||||
def generate_report(self,date, num_stations,duration, test_setup_info,dataset,lis,bands,threshold_2g,threshold_5g,threshold_both,dataset2,summary_table_value,result_data,test_input_infor):
|
||||
def generate_report(self, date, num_stations, duration, test_setup_info, dataset, lis, bands, threshold_2g,
|
||||
threshold_5g, threshold_both, dataset2, summary_table_value, result_data, test_input_infor):
|
||||
report = lf_report.lf_report(_results_dir_name="webpage_test", _output_html="Webpage.html", _output_pdf="Webpage.pdf")
|
||||
report.set_title("WEBPAGE DOWNLOAD TEST")
|
||||
report.set_date(date)
|
||||
@@ -594,7 +593,8 @@ class HttpDownload(Realm):
|
||||
html_file = report.write_html()
|
||||
print("returned file {}".format(html_file))
|
||||
print(html_file)
|
||||
report.write_pdf()
|
||||
report.write_pdf_with_timestamp(_page_size='A4', _orientation='Landscape')
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
@@ -618,7 +618,7 @@ def main():
|
||||
parser.add_argument('--threshold_2g', help="Enter the threshold value for 2.4G Pass/Fail criteria", default="90")
|
||||
parser.add_argument('--threshold_both', help="Enter the threshold value for Both Pass/Fail criteria", default="50")
|
||||
parser.add_argument('--ap_name', help="specify the ap model ", default="TestAP")
|
||||
parser.add_argument('--ssh_port', type=int, help="specify the shh port eg 22",default=22)
|
||||
parser.add_argument('--ssh_port', type=int, help="specify the ssh port eg 22", default=22)
|
||||
|
||||
args = parser.parse_args()
|
||||
test_time = datetime.now()
|
||||
@@ -768,7 +768,12 @@ def main():
|
||||
lis.append(i)
|
||||
|
||||
dataset2 = http1.speed_in_Mbps(result_data=result_data)
|
||||
data = http1.summary_calculation(result_data=result_data, bands=args.bands, threshold_5g=args.threshold_5g , threshold_2g= args.threshold_2g, threshold_both=args.threshold_both)
|
||||
data = http1.summary_calculation(
|
||||
result_data=result_data,
|
||||
bands=args.bands,
|
||||
threshold_5g=args.threshold_5g,
|
||||
threshold_2g=args.threshold_2g,
|
||||
threshold_both=args.threshold_both)
|
||||
|
||||
summary_table_value = {
|
||||
"": args.bands,
|
||||
@@ -780,5 +785,6 @@ def main():
|
||||
threshold_both=args.threshold_both, dataset2=dataset2,
|
||||
summary_table_value=summary_table_value, result_data=result_data, test_input_infor=test_input_infor)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user