Revert config changes so it doesn't break local dev builds.

Update tests
This commit is contained in:
Rebecca Law
2016-03-09 09:29:35 +00:00
parent 29ddad60e7
commit 87496aa884
4 changed files with 17 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
from flask import url_for
from tests.conftest import SERVICE_ONE_ID
def test_should_render_two_factor_page(app_,
@@ -31,11 +32,10 @@ def test_should_login_user_and_redirect_to_service_dashboard(app_,
'email': api_user_active.email_address}
response = client.post(url_for('main.two_factor'),
data={'sms_code': '12345'})
assert response.status_code == 302
assert response.location == url_for(
'main.service_dashboard',
service_id="596364a0-858e-42c8-9062-a8fe822260eb",
service_id=SERVICE_ONE_ID,
_external=True
)
@@ -125,11 +125,10 @@ def test_two_factor_should_set_password_when_new_password_exists_in_session(app_
response = client.post(url_for('main.two_factor'),
data={'sms_code': '12345'})
assert response.status_code == 302
assert response.location == url_for(
'main.service_dashboard',
service_id="596364a0-858e-42c8-9062-a8fe822260eb",
service_id=SERVICE_ONE_ID,
_external=True
)
api_user_active.password = 'changedpassword'