Test icons of each module
This ensures that the path is valid. issue9291 review315431002
This commit is contained in:
1 parent
8996bd6f56
commit
7521bfd8df
1 file changed
+9
@@ -290,6 +290,15 @@ class ModuleTestCase(unittest.TestCase):
|
||||
msg="Button '%s' is not in %s._buttons"
|
||||
% (button_name, Model.__name__))
|
||||
|
||||
@with_transaction()
|
||||
def test_icon(self):
|
||||
"Test icons of the module"
|
||||
pool = Pool()
|
||||
Icon = pool.get('ir.ui.icon')
|
||||
icons = Icon.search([('module', '=', self.module)])
|
||||
for icon in icons:
|
||||
self.assertTrue(icon.icon)
|
||||
|
||||
@with_transaction()
|
||||
def test_rpc_callable(self):
|
||||
'Test that RPC methods are callable'
|
||||
|
||||
Reference in new issue
Block a user