Update password on user profile with new endpoint

This commit is contained in:
Imdad Ahad
2017-02-07 13:32:20 +00:00
parent 7ad56df78b
commit 48b4dce848
3 changed files with 10 additions and 3 deletions

View File

@@ -801,6 +801,14 @@ def mock_update_user(mocker, api_user_active):
return mocker.patch('app.user_api_client.update_user', side_effect=_update)
@pytest.fixture(scope='function')
def mock_update_user_password(mocker, api_user_active):
def _update(user_id, **kwargs):
return api_user_active
return mocker.patch('app.user_api_client.update_password', side_effect=_update)
@pytest.fixture(scope='function')
def mock_update_user_attribute(mocker, api_user_active):
def _update(user_id, **kwargs):