Projet

Général

Profil

0013-misc-pylint-fix-assert-on-string-literal-52630.patch

Lauréline Guérin, 02 avril 2021 17:21

Télécharger (1,24 ko)

Voir les différences:

Subject: [PATCH 13/18] misc: pylint fix assert-on-string-literal (#52630)

 tests/test_register.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/test_register.py
211 211
    resp = app.get('/ident/password/forgotten')
212 212
    resp.forms[0]['username'] = 'bar'  # this account doesn't exist
213 213
    resp = resp.forms[0].submit()
214
    assert 'There is no user with that name or it has no email contact.'
214
    assert 'There is no user with that name or it has no email contact.' in resp
215 215

  
216 216
    resp = app.get('/ident/password/forgotten')
217 217
    resp.forms[0]['username'] = 'foo'  # this account doesn't have an email
218 218
    resp = resp.forms[0].submit()
219
    assert 'There is no user with that name or it has no email contact.'
219
    assert 'There is no user with that name or it has no email contact.' in resp
220 220

  
221 221
    user = pub.user_class.get(user_id)
222 222
    user.email = 'foo@localhost'
223
-