ignore precaution for plugin programmers srewing up in coverage

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

View File

@ -317,7 +317,7 @@ def split_permission(app, perm):
"""split permission string into permission and model"""
permission_name, *model = perm.split('_')
# handle models that have underscores
if len(model) > 1:
if len(model) > 1: # pragma: no cover
app += '_' + '_'.join(model[:-1])
perm = permission_name + '_' + model[-1:][0]
model = model[-1:][0]