@@ -89,11 +89,11 @@ def run_test(global_translation, lang_code, url):
89
89
reference_result_dict = None
90
90
use_reference = validator_result_dict ['use_reference' ]
91
91
if use_reference :
92
- if validator [ 'name' ] .startswith ('mobile' ):
92
+ if validator_name .startswith ('mobile' ):
93
93
reference_name = 'mobile'
94
94
reference_rating = mobile_rating .get_overall ()
95
95
reference_result_dict = mobile_result_dict
96
- if validator [ 'name' ] .startswith ('desktop' ):
96
+ if validator_name .startswith ('desktop' ):
97
97
reference_name = 'desktop'
98
98
reference_rating = desktop_rating .get_overall ()
99
99
reference_result_dict = desktop_result_dict
@@ -345,7 +345,7 @@ def rate_result_dict(result_dict, reference_result_dict,
345
345
def get_result_dict (data , mode ):
346
346
result_dict = {}
347
347
tmp_dict = {}
348
- regex = r"(?P<name>TTFB|DOMContentLoaded|firstPaint|FCP|LCP|Load|TBT|CLS|FirstVisualChange|SpeedIndex|VisualComplete85|LastVisualChange)\:[ ]{0,1}(?P<value>[0-9\.ms]+)"
348
+ regex = r"(?P<name>TTFB|DOMContentLoaded|firstPaint|FCP|LCP|Load|TBT|CLS|FirstVisualChange|SpeedIndex|VisualComplete85|LastVisualChange)\:[ ]{0,1}(?P<value>[0-9\.ms]+)" # pylint: disable=line-too-long
349
349
matches = re .finditer (regex , data , re .MULTILINE )
350
350
351
351
for _ , match in enumerate (matches , start = 1 ):
0 commit comments