mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Show correct default state on service settings page
By default a service should be active (ie keys not suspended). For some reason the API is returning the opposite. This commit reverses the logic to make it look right for hack day.
This commit is contained in:
@@ -81,7 +81,7 @@ def mock_get_service(mocker, mock_api_user):
|
||||
def _get(service_id):
|
||||
service = service_json(
|
||||
service_id, "Test Service", [mock_api_user.id], limit=1000,
|
||||
active=False, restricted=True)
|
||||
active=True, restricted=True)
|
||||
return {'data': service, 'token': 1}
|
||||
|
||||
return mocker.patch('app.notifications_api_client.get_service', side_effect=_get)
|
||||
|
||||
Reference in New Issue
Block a user