diff --git a/odoo/tests/addons/test_translation_import/__manifest__.py b/odoo/tests/addons/test_translation_import/__manifest__.py index 9c6f03a4e5ba664d4cb74551818a4678f74c8039..73a0c45003202fb766f693265f114155da48c2e8 100644 --- a/odoo/tests/addons/test_translation_import/__manifest__.py +++ b/odoo/tests/addons/test_translation_import/__manifest__.py @@ -6,7 +6,6 @@ 'description': """A module to test translation import.""", 'depends': ['base'], 'data': ['view.xml'], - 'test': ['tests.yml'], 'installable': True, 'auto_install': False, } diff --git a/odoo/tests/addons/test_translation_import/tests.yml b/odoo/tests/addons/test_translation_import/tests.yml deleted file mode 100644 index e129baec516d1d0aee1e46f67b0c8121f217cb88..0000000000000000000000000000000000000000 --- a/odoo/tests/addons/test_translation_import/tests.yml +++ /dev/null @@ -1,13 +0,0 @@ -- - Load the french translation. -- - !python {model: ir.translation }: | - import odoo - odoo.tools.trans_load(cr, 'test_translation_import/i18n/fr.po', 'fr_FR', verbose=False) -- - Assert we have loaded the correct number of entries for the given source string. -- - !python {model: ir.translation }: | - translations = self.search( - [('src', '=', '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')]) - assert len(translations) == 2, "2 entries are expected, got %s instead." % len(translations) diff --git a/odoo/tests/addons/test_translation_import/tests/__init__.py b/odoo/tests/addons/test_translation_import/tests/__init__.py index e4e38810912f01f512ddb2f69a4cca21bb11fdd3..e51db6a2527b3d5fdd47062a5d6a079cefbcfa27 100644 --- a/odoo/tests/addons/test_translation_import/tests/__init__.py +++ b/odoo/tests/addons/test_translation_import/tests/__init__.py @@ -1,4 +1,3 @@ # -*- coding: utf-8 -*- from . import test_term_count -