update test to reflect enum in servicepermission

This commit is contained in:
Beverly Nguyen
2025-07-17 01:00:00 -07:00
parent bb2588e960
commit a0d67d2a9c
14 changed files with 109 additions and 77 deletions

View File

@@ -74,7 +74,9 @@ def unicode_truncate(s, length):
def should_skip_template_page(db_template):
return (
current_user.has_permissions(ServicePermission.SEND_MESSAGES)
and not current_user.has_permissions(ServicePermission.MANAGE_TEMPLATES, "manage_api_keys")
and not current_user.has_permissions(
ServicePermission.MANAGE_TEMPLATES, "manage_api_keys"
)
and not db_template["archived"]
)