151 |
151 |
response = franceconnect.handle_logout(app, response.location)
|
152 |
152 |
assert path(response.location) == '/accounts/'
|
153 |
153 |
response = response.follow()
|
154 |
|
assert 'The link with the FranceConnect account has been deleted' in response
|
|
154 |
assert 'Your account link to FranceConnect has been deleted' in response
|
155 |
155 |
|
156 |
156 |
|
157 |
157 |
def test_create_no_unicode_collision(settings, app, franceconnect, hooks, service):
|
... | ... | |
217 |
217 |
response = response.click('Delete link')
|
218 |
218 |
assert 'new_password1' not in response.form.fields
|
219 |
219 |
response = response.form.submit(name='unlink').follow()
|
220 |
|
assert 'The link with the FranceConnect account has been deleted' in response.text
|
|
220 |
assert 'Your account link to FranceConnect has been deleted' in response.text
|
221 |
221 |
# no logout from FC since we are not logged to it
|
222 |
222 |
assert response.request.path == '/accounts/'
|
223 |
223 |
|
... | ... | |
234 |
234 |
response = franceconnect.handle_logout(app, response.location)
|
235 |
235 |
assert path(response.location) == '/accounts/'
|
236 |
236 |
response = response.follow()
|
237 |
|
assert 'The link with the FranceConnect account has been deleted' in response
|
|
237 |
assert 'Your account link to FranceConnect has been deleted' in response
|
238 |
238 |
|
239 |
239 |
|
240 |
240 |
def test_login_email_is_unique_and_already_linked(settings, app, franceconnect, caplog):
|
... | ... | |
370 |
370 |
response = franceconnect.handle_logout(app, response.location)
|
371 |
371 |
assert path(response.location) == '/accounts/'
|
372 |
372 |
response = response.follow()
|
373 |
|
assert 'The link with the FranceConnect account has been deleted' in response
|
|
373 |
assert 'Your account link to FranceConnect has been deleted' in response
|
374 |
374 |
assert len(response.pyquery('[href*="password/change"]')) > 0
|
375 |
375 |
|
376 |
376 |
|
377 |
|
-
|