From 7a22cbe5f73e3dd3ff8cf07db8bc62f5ee31168d Mon Sep 17 00:00:00 2001 From: Yannick Tivisse <yti@odoo.com> Date: Tue, 7 Nov 2017 15:39:46 +0100 Subject: [PATCH] [IMP] test_translation_import: Remove tests.yml The test is already implemented in python in 'odoo/tests/addons/test_translation_import/tests/test_term_count.py' --- .../addons/test_translation_import/__manifest__.py | 1 - odoo/tests/addons/test_translation_import/tests.yml | 13 ------------- .../test_translation_import/tests/__init__.py | 1 - 3 files changed, 15 deletions(-) delete mode 100644 odoo/tests/addons/test_translation_import/tests.yml diff --git a/odoo/tests/addons/test_translation_import/__manifest__.py b/odoo/tests/addons/test_translation_import/__manifest__.py index 9c6f03a4e5ba..73a0c4500320 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 e129baec516d..000000000000 --- 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 e4e38810912f..e51db6a2527b 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 - -- GitLab