[FIX] test_translation_import: side effect between test methods

One test method was setting `env.context` instead of creating a new
environment.
This commit is contained in:
Raphael Collet
2020-11-24 13:23:32 +00:00
parent cf0bf4737f
commit 84aabd001e
@@ -176,7 +176,7 @@ class TestTermCount(common.TransactionCase):
trans_count = self.env['ir.translation'].search_count([('lang', '=', 'tlh')])
self.assertEqual(trans_count, 1, "The imported translations were not created")
self.env.context = dict(self.env.context, lang="tlh")
self.env = self.env(context=dict(self.env.context, lang="tlh"))
self.assertEqual(_("Klingon"), "tlhIngan", "The code translation was not applied")
def test_lazy_translation(self):