password_security
module throws warning during tests
#141
Labels
stale
PR/Issue without recent activity, it'll be soon closed automatically.
The
password_security
module throws a warning during tests. Although it is just a warning, it makes odoo.sh flag the tests as yellow. So an Odoo instance usingpassword_security
cannot pass its tests on odoo.sh.Sample warning from the log:
Warning is thrown from within
odoo.http.route
decorator, which is wrappingpassword_security.controllers.main.web_auth_signup()
.Within that method we have the line:
@route
is unhappy because the response fromrequest.render()
is an instance ofMagicMock
. Whereas@route
is expecting an instance ofodoo.http.Response
, or one of a few other types.Need to change the mocking setup, so the
MagicMock
object will report itself as an instance ofodoo.http.Response
.The text was updated successfully, but these errors were encountered: