mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Simplify result view, we don't need to display malformed path, removal tests
This commit is contained in:
parent
bda8dc5a85
commit
be1904c7f9
1 changed files with 12 additions and 9 deletions
21
app/app.py
21
app/app.py
|
@ -9,7 +9,18 @@ import json
|
|||
import os
|
||||
|
||||
main = Blueprint('main', __name__, url_prefix=SITE_ROOT)
|
||||
|
||||
tests = [ "Package linter",
|
||||
"Installation",
|
||||
"Installation in a sub path",
|
||||
"Installation on the root",
|
||||
"Installation in private mode",
|
||||
"Multi-instance installations",
|
||||
"Upgrade",
|
||||
"Backup",
|
||||
"Restore",
|
||||
"Change URL",
|
||||
"Port already used",
|
||||
]
|
||||
|
||||
def sort_test_results(results):
|
||||
|
||||
|
@ -54,10 +65,6 @@ def appci_branch(branch):
|
|||
|
||||
app_results = sort_test_results(branch.most_recent_tests_per_app())
|
||||
|
||||
tests = AppCI.tests.copy()
|
||||
if "Malfurmed path" in tests:
|
||||
tests.remove("Malformed path")
|
||||
|
||||
return render_template("appci_branch.html", tests=tests,
|
||||
branch=branch,
|
||||
app_results=app_results)
|
||||
|
@ -73,10 +80,6 @@ def appci_app(app):
|
|||
for r in branch_results:
|
||||
r.level = -1 if r.level in ["?", None] else int(r.level)
|
||||
|
||||
tests = AppCI.tests.copy()
|
||||
if "Malformed path" in tests:
|
||||
tests.remove("Malformed path")
|
||||
|
||||
history_file = "./app/scripts/appListsHistory/per_app/history_%s.json" % app.name
|
||||
if os.path.exists(history_file):
|
||||
history = json.loads(open(history_file).read())
|
||||
|
|
Loading…
Reference in a new issue