release: v3.3.0 — platform hardening & admin unification (Track F.1–F.8)
Plugin visibility control, UI/UX fixes, unified admin panel, database-backed settings, and security hardening. Highlights: - ENABLED_PLUGINS env var for plugin visibility (F.1) - Admin designation via ADMIN_EMAILS (F.4a) - Master key scope control (F.4b) - Panel unification + settings from UI (F.4c) - exec() removal, shell injection fix, bcrypt migration (F.8) - 5 new test suites Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
tests/test_f3_admin_stats.py
Normal file
17
tests/test_f3_admin_stats.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Tests for admin dashboard stats (Phase F.3)."""
|
||||
|
||||
from core.dashboard.routes import get_dashboard_stats
|
||||
|
||||
|
||||
class TestAdminDashboardStats:
|
||||
"""Test admin dashboard statistics include platform data."""
|
||||
|
||||
async def test_stats_include_users_count(self):
|
||||
"""Verify users_count is present in admin stats."""
|
||||
stats = await get_dashboard_stats()
|
||||
assert "users_count" in stats
|
||||
|
||||
async def test_stats_include_user_sites_count(self):
|
||||
"""Verify user_sites_count is present in admin stats."""
|
||||
stats = await get_dashboard_stats()
|
||||
assert "user_sites_count" in stats
|
||||
Reference in New Issue
Block a user