From 915756eacf7227b41bf9f615c6adb9832abd6a46 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 29 Jul 2021 09:28:08 +1000 Subject: [PATCH] Improve test output --- ci/check_js_templates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/check_js_templates.py b/ci/check_js_templates.py index aa40b88742..e3c1f0148f 100644 --- a/ci/check_js_templates.py +++ b/ci/check_js_templates.py @@ -71,14 +71,14 @@ def check_prohibited_tags(data): for tag in re.findall(pattern, line): if tag not in allowed_tags: - print(f" > Line {idx+1} - '{tag}'") + print(f" > Line {idx+1} contains prohibited template tag '{tag}'") err_count += 1 if tag == 'trans': has_trans = True if not has_trans: - print(f" > missing 'trans' tag") + print(f" > file is missing 'trans' tags") err_count += 1 return err_count @@ -113,7 +113,7 @@ for filename in pathlib.Path(js_dynamic_dir).rglob('*.js'): if len(results) > 0: errors += 1 - print(f" > {{% trans %}} tag found at line {idx + 1}") + print(f" > prohibited {{% trans %}} tag found at line {idx + 1}") if errors > 0: print(f"Found {errors} incorrect template tags")