Even more cleanup.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-02-21 14:14:45 -05:00
parent e9f9a3c6f1
commit 7083db9351
15 changed files with 93 additions and 34 deletions

View File

@@ -46,6 +46,7 @@ from app.enums import (
NotificationStatus,
NotificationType,
OrganizationType,
PermissionType,
ServicePermissionType,
TemplateType,
)
@@ -916,7 +917,7 @@ def test_add_existing_user_to_another_service_doesnot_change_old_permissions(
# adding the other_user to service_one should leave all other_user permissions on service_two intact
permissions = []
for p in ["send_emails", "send_texts"]:
for p in [PermissionType.SEND_EMAILS, PermissionType.SEND_TEXTS]:
permissions.append(Permission(permission=p))
dao_add_user_to_service(service_one, other_user, permissions=permissions)