mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
109898688: Implement get method for email-not-received and text-not-received
This commit is contained in:
18
tests/app/main/views/test_code_not_received.py
Normal file
18
tests/app/main/views/test_code_not_received.py
Normal file
@@ -0,0 +1,18 @@
|
||||
def test_should_render_email_code_not_received_template(notifications_admin):
|
||||
response = notifications_admin.test_client().get('/email-not-received')
|
||||
assert response.status_code == 200
|
||||
assert 'Check your email address is correct and then resend the confirmation code' \
|
||||
in response.get_data(as_text=True)
|
||||
|
||||
|
||||
# def test_should_check_and_resend_email_code(notifications_admin, notifications_admin_db, notify_db_session):
|
||||
# response = notifications_admin.test_client().post('/email-not-received',
|
||||
# data={'email_adddress': 'test@user.gov.uk'})
|
||||
# assert response is None
|
||||
|
||||
|
||||
def test_should_render_text_code_not_received_template(notifications_admin):
|
||||
response = notifications_admin.test_client().get('/text-not-received')
|
||||
assert response.status_code == 200
|
||||
assert 'Check your mobile phone number is correct and then resend the confirmation code.' \
|
||||
in response.get_data(as_text=True)
|
||||
Reference in New Issue
Block a user