From 8942ceca44ed4dbf4ffe69f0f7a36297ef1a4973 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 19 Dec 2020 02:24:21 +0100 Subject: [PATCH] Fix check of qualify_for_level_7/8/9 in level computation --- lib/analyze_test_results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/analyze_test_results.py b/lib/analyze_test_results.py index f70d601..1bec269 100644 --- a/lib/analyze_test_results.py +++ b/lib/analyze_test_results.py @@ -125,7 +125,7 @@ def level_7(tests): return all(t["results"]["main_result"] == "success" for t in tests) \ and linter_tests != [] \ - and "qualify_for_level_7" in linter_tests[0]["results"]["success"] + and "App.qualify_for_level_7" in linter_tests[0]["results"]["success"] @level(8, "Maintained and long-term good quality") @@ -138,7 +138,7 @@ def level_8(tests): linter_tests = [t for t in tests if t["test_type"] == "PACKAGE_LINTER"] return linter_tests != [] \ - and "qualify_for_level_8" in linter_tests[0]["results"]["success"] + and "App.qualify_for_level_8" in linter_tests[0]["results"]["success"] @level(9, "Flagged high-quality in app catalog") @@ -150,7 +150,7 @@ def level_9(tests): linter_tests = [t for t in tests if t["test_type"] == "PACKAGE_LINTER"] return linter_tests != [] \ - and "qualify_for_level_9" in linter_tests[0]["results"]["success"] + and "App.qualify_for_level_9" in linter_tests[0]["results"]["success"] tests = list(load_tests(sys.argv[1]))