ignore programming error in coverage

This commit is contained in:
Matthias 2022-03-13 19:48:04 +01:00
parent 4c36737b9f
commit e68cc25294
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -373,7 +373,7 @@ def update_group_roles(group, debug=False):
allowed - Whether or not the action is allowed
"""
if action not in ['view', 'add', 'change', 'delete']:
if action not in ['view', 'add', 'change', 'delete']: # pragma: no cover
raise ValueError("Action {a} is invalid".format(a=action))
permission_string = RuleSet.get_model_permission_string(model, action)