109638656: Send sms code from sign-in post.

This commit is contained in:
Rebecca Law
2015-12-08 09:21:51 +00:00
parent eae2756a5e
commit c946f85f9d
5 changed files with 41 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ def test_should_render_two_factor_page(notifications_admin, notifications_admin_
def test_should_login_user_and_redirect_to_dashboard(notifications_admin, notifications_admin_db):
response = notifications_admin.test_client().post('/two-factor',
data={'sms_code': '12345'})
data={'sms_code': '12345'})
assert response.status_code == 302
assert response.location == 'http://localhost/dashboard'
assert response.location == 'http://localhost/dashboard'