changeset 23342a60ff35 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=23342a60ff35
description:
Test icons of each module
This ensures that the path is valid.
issue9291
review315431002
diffstat:
trytond/tests/test_tryton.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r cbfb539d661b -r 23342a60ff35 trytond/tests/test_tryton.py
--- a/trytond/tests/test_tryton.py Mon May 04 12:01:52 2020 +0200
+++ b/trytond/tests/test_tryton.py Sun May 10 12:02:59 2020 +0200
@@ -291,6 +291,15 @@
% (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'
for _, model in Pool().iterobject():