authentication_policy: fix UnicodeDecodeError with invalid password messages
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.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#135602
external
|
ERP5.CodingStyleTest-Master |
00:42:32
|
||||||
passed |
#135630
external
|
ERP5.PerformanceTest-Master |
00:23:00
|
||||||
failed |
#135670
external
|
ERP5.UnitTest-Master |
|
||||||
failed |
#135604
external
|
ERP5.UnitTest-Master.Medusa |
01:23:56
|
||||||
passed |
#135624
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:18:18
|
||||||
passed |
#135610
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:54
|
||||||