Change new invite registration flow to only need

sms for verification.

This may change again soon with story to split 2 factor
pages, but for now is correct.
This commit is contained in:
Adam Shimali
2016-03-11 16:36:15 +00:00
parent 9d2fbca557
commit 164bdad4f2
5 changed files with 66 additions and 24 deletions

View File

@@ -332,6 +332,7 @@ def mock_register_user(mocker, api_user_pending):
@pytest.fixture(scope='function')
def mock_get_user(mocker, api_user_active):
def _get_user(id):
api_user_active.id = id
return api_user_active
return mocker.patch(
'app.user_api_client.get_user', side_effect=_get_user)