From 7521bfd8df4580e74f89dfaa11445a8b525b9971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 10 May 2020 12:02:59 +0200 Subject: [PATCH] Test icons of each module This ensures that the path is valid. issue9291 review315431002 --- trytond/tests/test_tryton.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/trytond/tests/test_tryton.py b/trytond/tests/test_tryton.py index e38f99fe25..5e8e873e09 100644 --- a/trytond/tests/test_tryton.py +++ b/trytond/tests/test_tryton.py @@ -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'