python3: encoding variations in test_auth_fc

This commit is contained in:
Paul Marillonnet 2020-02-13 17:23:27 +01:00
parent 6509274c6f
commit 5b1597435b
1 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ def test_login_simple(app, fc_settings, caplog, hooks, exp):
response.form.set('new_password1', 'ikKL1234')
response.form.set('new_password2', 'ikKL1234')
response = response.form.submit(name='unlink')
assert 'The link with the FranceConnect account has been deleted' in response.content
assert 'The link with the FranceConnect account has been deleted' in response.text
assert models.FcAccount.objects.count() == 0
continue_url = response.pyquery('a#a2-continue').attr['href']
state = urlparse.parse_qs(urlparse.urlparse(continue_url).query)['state'][0]
@ -234,7 +234,7 @@ def test_login_email_is_unique(app, fc_settings, caplog):
response = response.click('Delete link')
assert 'new_password1' not in response.form.fields
response = response.form.submit(name='unlink').follow()
assert 'The link with the FranceConnect account has been deleted' in response.content
assert 'The link with the FranceConnect account has been deleted' in response.text
assert response.request.path == '/accounts/'
@ -406,7 +406,7 @@ def test_registration1(app, fc_settings, caplog, hooks):
response.form.set('new_password1', 'ikKL1234')
response.form.set('new_password2', 'ikKL1234')
response = response.form.submit(name='unlink')
assert 'The link with the FranceConnect account has been deleted' in response.content
assert 'The link with the FranceConnect account has been deleted' in response.text
assert models.FcAccount.objects.count() == 0
continue_url = response.pyquery('a#a2-continue').attr['href']
state = urlparse.parse_qs(urlparse.urlparse(continue_url).query)['state'][0]
@ -500,7 +500,7 @@ def test_registration2(app, fc_settings, caplog, hooks):
response.form.set('new_password1', 'ikKL1234')
response.form.set('new_password2', 'ikKL1234')
response = response.form.submit(name='unlink')
assert 'The link with the FranceConnect account has been deleted' in response.content
assert 'The link with the FranceConnect account has been deleted' in response.text
assert models.FcAccount.objects.count() == 0
continue_url = response.pyquery('a#a2-continue').attr['href']
state = urlparse.parse_qs(urlparse.urlparse(continue_url).query)['state'][0]