2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

ignore programming error in coverage

This commit is contained in:
Matthias
2022-03-13 19:48:04 +01:00
parent 4c36737b9f
commit e68cc25294

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)