• Jérome Perrin's avatar
    authentication_policy: fix UnicodeDecodeError with invalid password messages · 28ef4724
    Jérome Perrin authored
    When new password does not match policy, in reset password and change
    password dialogs, we used u' '.join([str(message) ...]) to join all
    translated messages in a string, but this construct will decode the
    str(message) to unicode using ascii, so it will fail when these messages
    contain some multi bytes characters.
    
    Extend test coverage to check that these dialogs uses translations and use
    non ascii messages in the tests, to make sure we don't have regressions
    with this issue.
    28ef4724
test.erp5.testAuthenticationPolicy.py 34.9 KB