[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'
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
'description': """A module to test translation import.""",
|
||||
'depends': ['base'],
|
||||
'data': ['view.xml'],
|
||||
'test': ['tests.yml'],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_term_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user