mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-01 12:19:47 -04:00
Update password on user profile with new endpoint
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user