• Jérome Perrin's avatar
    hal_json_style: fix double translation of worklist message · d7f6bf12
    Jérome Perrin authored
    There was a regression with 45c03413 (hal_json_style: prevent a
    translation of worklist with document count, 2021-05-10), the title
    of the worklist was translated twice. This was supposed to be
    catched by the test, by checking that the mocked gettext had only
    one call for "Draft to Validate", assuming that the translation of
    "Draft to Validate" was "Draft to Validate" and that a double
    translation would cause this to be translated twice, but because of
    a side effect of another test inserting a translation for
    "Draft to Validate", this problem was not noticed.
    
    This fixes the double translation and adjust the test to not depend
    on the actual content of message catalog.
    d7f6bf12
test.erp5.testHalJsonStyle.py 164 KB