feat: + unit test

This commit is contained in:
莘权 马 2023-08-08 15:25:26 +08:00
parent 36386ce143
commit 76ea924a05
2 changed files with 66 additions and 0 deletions

View file

@ -168,6 +168,11 @@ class Role:
"""Return role `constraints`, read only"""
return self._setting.constraints
@property
def action_count(self):
"""Return number of action"""
return len(self._actions)
def _get_prefix(self):
"""获取角色前缀"""
if self._setting.desc: