Fix change_url check + set it as info?

This commit is contained in:
Alexandre Aubin 2020-12-05 17:02:27 +01:00
parent 371237c093
commit 095a690fe7

View file

@ -407,9 +407,9 @@ class App(TestSuite):
@test() @test()
def change_url_script(app): def change_url_script(app):
has_domain_arg = any(a["name"] == "is_public" for a in app.manifest["arguments"].get("install", [])) has_domain_arg = any(a["name"] == "domain" for a in app.manifest["arguments"].get("install", []))
if has_domain_arg and not file_exists(app.path + "/scripts/change_url"): if has_domain_arg and not file_exists(app.path + "/scripts/change_url"):
yield Warning("Consider adding a change_url script to support changing where the app is installed") yield Info("Consider adding a change_url script to support changing where the app is installed")
@test() @test()
def badges_in_readme(app): def badges_in_readme(app):