misc: pylint fix assert-on-string-literal (#52630)
This commit is contained in:
parent
f93f513213
commit
0ba07f8b12
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue