mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Fix count of users on request to go live
We were counting users who had the `manage_settings` permission. This is the old name for it, therefore there would never be any users with this permission, so the tick would never go green. The new name for the permission is `manage_service`. This commit fixes the error, and adds an extra safeguard against something like this happening again.
This commit is contained in:
@@ -516,7 +516,7 @@ def test_should_show_request_to_go_live_checklist(
|
||||
service_id=SERVICE_ONE_ID,
|
||||
)
|
||||
|
||||
mock_count_users.assert_called_once_with(SERVICE_ONE_ID, 'manage_settings')
|
||||
mock_count_users.assert_called_once_with(SERVICE_ONE_ID, 'manage_service')
|
||||
assert mock_count_templates.call_args_list == [
|
||||
call(SERVICE_ONE_ID),
|
||||
call(SERVICE_ONE_ID, template_type='email'),
|
||||
|
||||
Reference in New Issue
Block a user