Return qualify_for_level_9 if app is flagged high quality

This commit is contained in:
Alexandre Aubin 2020-12-17 22:47:24 +01:00
parent 095a690fe7
commit a47f5952cd

View file

@ -344,6 +344,7 @@ class App(TestSuite):
# previously computed errors/warning/successes # previously computed errors/warning/successes
self.run_single_test(App.qualify_for_level_7) self.run_single_test(App.qualify_for_level_7)
self.run_single_test(App.qualify_for_level_8) self.run_single_test(App.qualify_for_level_8)
self.run_single_test(App.qualify_for_level_9)
if output == "json": if output == "json":
print(json.dumps({ print(json.dumps({
@ -383,6 +384,11 @@ class App(TestSuite):
elif "qualify_for_level_7" in successes and "is_long_term_good_quality" in successes: elif "qualify_for_level_7" in successes and "is_long_term_good_quality" in successes:
yield Success("The app is maintained and long-term good quality, and therefore qualifies for level 8!") yield Success("The app is maintained and long-term good quality, and therefore qualifies for level 8!")
def qualify_for_level_9(self):
if self.app_catalog.catalog_infos.get("high_quality", False):
yield Success("The app is flagged as high-quality in the app catalog")
######################################### #########################################
# _____ _ # # _____ _ #
# | __ \ | | # # | __ \ | | #