From 01feb8aac994c0897f178e3ffa8e069528d5f20d Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 26 Feb 2011 11:29:11 +0100 Subject: [PATCH] add checks on backends tests --- tools/weboob_lint.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/weboob_lint.py b/tools/weboob_lint.py index 5f913a9a..d57a3476 100755 --- a/tools/weboob_lint.py +++ b/tools/weboob_lint.py @@ -1,6 +1,8 @@ #!/usr/bin/env python from weboob.core.modules import ModulesLoader +import weboob.backends +import os loader = ModulesLoader() loader.load_all() @@ -8,3 +10,10 @@ loader.load_all() backends_without_icons = [name for name, backend in loader.loaded.iteritems() if backend.icon_path is None] if backends_without_icons: print 'Backends without icons: %s' % backends_without_icons + +backends_without_tests = [] +for name, backend in loader.loaded.iteritems(): + if not os.path.exists(os.path.join(weboob.backends.__path__[0], name, 'test.py')): + backends_without_tests.append(name) +if backends_without_tests: + print 'Backends without tests: %s' % backends_without_tests