mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Return qualify_for_level_9 if app is flagged high quality
This commit is contained in:
parent
095a690fe7
commit
a47f5952cd
1 changed files with 6 additions and 0 deletions
|
@ -344,6 +344,7 @@ class App(TestSuite):
|
|||
# previously computed errors/warning/successes
|
||||
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_9)
|
||||
|
||||
if output == "json":
|
||||
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:
|
||||
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")
|
||||
|
||||
#########################################
|
||||
# _____ _ #
|
||||
# | __ \ | | #
|
||||
|
|
Loading…
Reference in a new issue