Report config panels version 0.1

This commit is contained in:
Alexandre Aubin 2021-11-14 21:36:38 +01:00
parent 8f6aada99a
commit 5c972a2607

View file

@ -540,6 +540,19 @@ class App(TestSuite):
"Consider adding a change_url script to support changing where the app can be reached" "Consider adding a change_url script to support changing where the app can be reached"
) )
@test()
def config_panel(app):
if file_exists(app.path + "config_panel.json"):
yield Info(
"JSON config panels are not supported anymore, should be replaced by a toml version"
)
if file_exists(app.path + "config_panel.toml") and os.system("grep -q 'version = \"0.1\"' '%s'" % (app.path + "config_panel.toml")) == 0:
yield Info(
"Config panels version 0.1 are not supported anymore, should be adapted for version 1.0"
)
@test() @test()
def badges_in_readme(app): def badges_in_readme(app):