From e68cc252947417ae105d321b12797961af1c7a9b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Mar 2022 19:48:04 +0100 Subject: [PATCH] ignore programming error in coverage --- InvenTree/users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/users/models.py b/InvenTree/users/models.py index fc22d036a3..93bed1541d 100644 --- a/InvenTree/users/models.py +++ b/InvenTree/users/models.py @@ -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)