tests: expand .values() as lists (#36515)
This commit is contained in:
parent
b97f9a63f0
commit
d1a7e6e187
|
@ -1613,7 +1613,7 @@ def test_form_tracking_code_email(pub, emails, nocache):
|
|||
resp.forms[0]['email'] = 'foo@localhost'
|
||||
resp = resp.forms[0].submit()
|
||||
assert emails.emails.get('Tracking Code reminder')
|
||||
assert tracking_code in emails.emails.values()[0]['payload']
|
||||
assert tracking_code in list(emails.emails.values())[0]['payload']
|
||||
assert resp.location == 'http://example.net/test/code/%s/load' % tracking_code
|
||||
resp = resp.follow()
|
||||
resp = resp.follow()
|
||||
|
@ -2592,7 +2592,7 @@ def test_form_captcha(pub):
|
|||
assert 'Check values then click submit.' in resp.text
|
||||
assert 'form_captcha' in resp.text
|
||||
|
||||
session_id = app.cookies.values()[0].strip('"')
|
||||
session_id = list(app.cookies.values())[0].strip('"')
|
||||
session = pub.session_class.get(session_id)
|
||||
resp.form['captcha$q'] = session.get_captcha_token(resp.forms[0]['captcha$token'].value)['answer']
|
||||
resp = resp.form.submit('submit')
|
||||
|
|
Loading…
Reference in New Issue