Unit test bug fix. Page structure change.

This commit is contained in:
Adam Shimali
2016-03-18 11:20:08 +00:00
parent 7ee173de51
commit a1203d75ea
2 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,8 @@ def test_should_render_email_verification_resent_show_email_address_and_resend_v
assert page.h1.string == 'Check your email'
expected = "In order to verify your email address we've sent a new confirmation link to {}".format(api_user_active.email_address) # noqa
assert page.p.string == expected
message = page.find_all('p')[1].text
assert message == expected
mock_send_verify_email.assert_called_with(api_user_active.id, api_user_active.email_address)

View File

@@ -17,7 +17,8 @@ def test_should_return_verify_template(app_,
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.h1.text == 'Text verification'
assert page.p.text == "We've sent you a text message with a verification code."
message = page.find_all('p')[1].text
assert message == "We've sent you a text message with a verification code."
def test_should_redirect_to_add_service_when_sms_code_is_correct(app_,