diff --git a/package_linter.py b/package_linter.py index b366069..ac290a2 100755 --- a/package_linter.py +++ b/package_linter.py @@ -769,16 +769,16 @@ class App(TestSuite): @test() def config_panel(app): - if file_exists(app.path + "config_panel.json"): + if file_exists(app.path + "/config_panel.json"): yield Error( "JSON config panels are not supported anymore, should be replaced by a toml version" ) - if file_exists(app.path + "config_panel.toml"): + if file_exists(app.path + "/config_panel.toml"): if ( os.system( "grep -q 'version = \"0.1\"' '%s'" - % (app.path + "config_panel.toml") + % (app.path + "/config_panel.toml") ) == 0 ): @@ -800,7 +800,7 @@ class App(TestSuite): validate_schema( "config_panel", config_panel_v1_schema(), - toml.load(app.path + "config_panel.toml"), + toml.load(app.path + "/config_panel.toml"), ) @test() @@ -1218,7 +1218,7 @@ class Configurations(TestSuite): ) else: validate_schema( - "tests.toml", tests_v1_schema(), toml.load(app.path + "tests.toml") + "tests.toml", tests_v1_schema(), toml.load(app.path + "/tests.toml") ) @test()