From b9ace5eb7fef872ce20e6ed7bcfa994f30b92205 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 24 Mar 2010 11:00:24 +0000 Subject: [PATCH] Check cataloging of translated workflow state title with context git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34045 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testTranslation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/tests/testTranslation.py b/product/ERP5/tests/testTranslation.py index 4a24497107..f4837962b9 100644 --- a/product/ERP5/tests/testTranslation.py +++ b/product/ERP5/tests/testTranslation.py @@ -280,6 +280,12 @@ class TestWorkflowStateTitleTranslation(ERP5TypeTestCase): self.assertEquals(item.getTranslatedValidationStateTitle(), "En bon usage") self.assertEquals(organisation.getTranslatedValidationStateTitle(), 'Validé') + # Now run indexation of translations. + self.portal.ERP5Site_updateTranslationTable() + # Ckeck queries with translated workflow state title generated with + # getMessageIdWithContext + self.assertTrue(len(self.portal.portal_catalog( + translated_validation_state_title="En bon usage"))) class LanguageGetter(MethodObject.Method): -- 2.30.9