mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Change format of data sent to api when adding user to service
The endpoint for adding a user to a service in api will now deal with both user permissions and a user's folder permissions, so this changes the format of the data we pass through.
This commit is contained in:
@@ -154,7 +154,7 @@ def test_client_converts_admin_permissions_to_db_permissions_on_add_to_service(a
|
||||
|
||||
user_api_client.add_user_to_service('service_id', 'user_id', permissions={'send_messages', 'view_activity'})
|
||||
|
||||
assert sorted(mock_post.call_args[1]['data'], key=lambda x: x['permission']) == sorted([
|
||||
assert sorted(mock_post.call_args[1]['data']['permissions'], key=lambda x: x['permission']) == sorted([
|
||||
{'permission': 'send_texts'},
|
||||
{'permission': 'send_emails'},
|
||||
{'permission': 'send_letters'},
|
||||
|
||||
Reference in New Issue
Block a user