misc: pylint fix assert-on-string-literal (#52630)

This commit is contained in:
Lauréline Guérin 2021-04-02 15:01:01 +02:00
parent f93f513213
commit 0ba07f8b12
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 2 additions and 2 deletions

View File

@ -211,12 +211,12 @@ def test_forgotten(pub, emails):
resp = app.get('/ident/password/forgotten')
resp.forms[0]['username'] = 'bar' # this account doesn't exist
resp = resp.forms[0].submit()
assert 'There is no user with that name or it has no email contact.'
assert 'There is no user with that name or it has no email contact.' in resp
resp = app.get('/ident/password/forgotten')
resp.forms[0]['username'] = 'foo' # this account doesn't have an email
resp = resp.forms[0].submit()
assert 'There is no user with that name or it has no email contact.'
assert 'There is no user with that name or it has no email contact.' in resp
user = pub.user_class.get(user_id)
user.email = 'foo@localhost'