mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 06:56:43 +08:00
feat: 完善数据库备份管理与版本读取 (#6450)
This commit is contained in:
@@ -52,6 +52,10 @@ def test_system_sensitive_read_endpoints_require_superuser():
|
||||
"""系统敏感读取接口必须只允许管理员访问。"""
|
||||
assert _dependency_of(system_endpoint.get_env_setting, "_") is get_current_active_superuser_async
|
||||
assert _dependency_of(system_endpoint.get_setting, "_") is get_current_active_superuser_async
|
||||
assert _dependency_of(system_endpoint.list_database_backups, "_") is get_current_active_superuser_async
|
||||
assert _dependency_of(system_endpoint.create_database_backup, "_") is get_current_active_superuser_async
|
||||
assert _dependency_of(system_endpoint.verify_database_backup, "_") is get_current_active_superuser_async
|
||||
assert _dependency_of(system_endpoint.delete_database_backup, "_") is get_current_active_superuser_async
|
||||
|
||||
|
||||
def test_system_public_read_endpoints_require_active_user():
|
||||
|
||||
Reference in New Issue
Block a user