mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 07:18:58 -04:00
Slight (bad) hack to ensure that the ticks appear on the manage user page
- changes imports for utils from broken version on previous branch
This commit is contained in:
@@ -12,6 +12,7 @@ from . import (
|
||||
job_json,
|
||||
invite_json
|
||||
)
|
||||
from app.notify_client.models import User
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
@@ -538,7 +539,7 @@ def mock_get_users_by_service(mocker):
|
||||
'name': 'Test User',
|
||||
'email_address': 'notify@digital.cabinet-office.gov.uk',
|
||||
'failed_login_count': 0}]
|
||||
return data
|
||||
return [User(data[0])]
|
||||
return mocker.patch('app.user_api_client.get_users_for_service', side_effect=_get_users_for_service, autospec=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user