feat: update audit platform workspace
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""系统使用统计角色权限语义测试。"""
|
||||
|
||||
from fastapi_modules.fastapi_leaudit.services.impl.usageStatsServiceImpl import UsageStatsServiceImpl
|
||||
|
||||
|
||||
def test_usage_stats_service_does_not_require_admin_role_after_controller_permission_check():
|
||||
"""统计服务不再用管理员角色二次拦截,权限由控制器权限点决定。"""
|
||||
service = UsageStatsServiceImpl()
|
||||
|
||||
service._assert_stats_access(
|
||||
{
|
||||
"is_global": False,
|
||||
"can_manage": False,
|
||||
"tenant_scope_value": "梅州",
|
||||
"tenant_code": "MZ",
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user