add checks on backends tests
This commit is contained in:
parent
3ca779c8ca
commit
01feb8aac9
1 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from weboob.core.modules import ModulesLoader
|
from weboob.core.modules import ModulesLoader
|
||||||
|
import weboob.backends
|
||||||
|
import os
|
||||||
|
|
||||||
loader = ModulesLoader()
|
loader = ModulesLoader()
|
||||||
loader.load_all()
|
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]
|
backends_without_icons = [name for name, backend in loader.loaded.iteritems() if backend.icon_path is None]
|
||||||
if backends_without_icons:
|
if backends_without_icons:
|
||||||
print 'Backends without icons: %s' % 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue