mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Change the format of the user_permissions data that gets sent
The endpoint for setting permissions in api will now be used for 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:
@@ -141,7 +141,7 @@ def test_client_converts_admin_permissions_to_db_permissions_on_edit(app_, mocke
|
||||
|
||||
user_api_client.set_user_permissions('user_id', 'service_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