Commit 492bad50 authored by Jérome Perrin's avatar Jérome Perrin

🚧 try patch for...

🚧 try patch for 45c03413 (comment 171160)
parent b1d6fae6
Pipeline #24554 failed with stage
in 0 seconds
......@@ -2942,8 +2942,12 @@ return msg"
# worklists with the actual count of document
fake_request = do_fake_request("GET")
self.portal.Base_addUITestTranslation(message='Draft to Validate', translation='Draft to Validate translated', language="wo")
default_gettext = self.portal.Localizer.erp5_ui.gettext
def gettext(message, **kw):
# TODO can't we return mock.DEFAULT here ?
return default_gettext(message, **kw)
with mock.patch.object(self.portal.Localizer.erp5_ui.__class__, 'gettext', side_effect=gettext) as gettext_mock:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment