mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24:15 -04:00
Update update user mock to conform to new format
This commit is contained in:
@@ -753,9 +753,9 @@ def mock_verify_password(mocker):
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_update_user(mocker):
|
||||
def _update(user):
|
||||
return user
|
||||
def mock_update_user(mocker, api_user_active):
|
||||
def _update(user_id, **kwargs):
|
||||
return api_user_active
|
||||
|
||||
return mocker.patch('app.user_api_client.update_user', side_effect=_update)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user