Cosmetics

This commit is contained in:
Alexandre Aubin 2020-11-18 23:56:58 +01:00
parent d80db3d9a4
commit 84d9a3a5c2

View file

@ -190,7 +190,7 @@ class Error(TestReport):
style = c.FAIL + "%s" + c.END
class Info(TestReport):
style = c.OKBLUE + " %s" + c.END
style = c.OKBLUE + " %s" + c.END
class Success(TestReport):
style = c.OKGREEN + "%s" + c.END
@ -362,7 +362,7 @@ class App(TestSuite):
elif len(tests_reports["warning"]) > 3:
print(" Still some warnings to be fixed :s")
elif len(tests_reports["warning"]) > 0:
print("Only %s warning remaining! You can do it!" % len(test_reports["warning"]))
print(" Only %s warning remaining! You can do it!" % len(tests_reports["warning"]))
else:
yield Success("Not even a warning! Congratz and thank you for keeping that package up to date with good practices! This app qualifies for level 7!")
@ -1022,7 +1022,7 @@ class AppCatalog(TestSuite):
subprocess.check_call(["git", "clone", "https://github.com/YunoHost/apps", "./.apps", "--quiet"])
else:
subprocess.check_call(["git", "-C", "./.apps", "fetch", "--quiet"])
subprocess.check_call(["git", "-C", "./.apps", "reset", "origin/master", "--hard"])
subprocess.check_call(["git", "-C", "./.apps", "reset", "origin/master", "--hard", "--quiet"])
open(flagfile, "w").write("")
@ -1140,7 +1140,7 @@ class AppCatalog(TestSuite):
score = sum([good_quality(infos) for d, infos in history])
rel_score = int(100 * score / N)
if rel_score > 90:
yield Success("The app is long-term good quality in the catalog ! (Score: %s/100)" % rel_score)
yield Success("The app is long-term good quality in the catalog !")
##################################
# _____ _ _ #