mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
Coverage now includes: session_management, config, knowledge_base, live_chat, persona, tools, chat, conversation, open_api, backup, skills, t2i, cron, plugin, chatui_project, stat, server, auth, subagent, update, log, command
23 lines
744 B
Python
23 lines
744 B
Python
"""Import smoke tests for the update dashboard route module.
|
|
|
|
Verifies that all public classes and key constants from ``update.py``
|
|
can be imported without errors.
|
|
"""
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# update.py -- UpdateRoute and CLEAR_SITE_DATA_HEADERS
|
|
# ---------------------------------------------------------------------------
|
|
from astrbot.dashboard.routes.update import (
|
|
CLEAR_SITE_DATA_HEADERS, # noqa: F401
|
|
UpdateRoute, # noqa: F401
|
|
)
|
|
|
|
|
|
def test_update_route_class():
|
|
assert UpdateRoute is not None
|
|
|
|
|
|
def test_clear_site_data_headers():
|
|
assert isinstance(CLEAR_SITE_DATA_HEADERS, dict)
|
|
assert CLEAR_SITE_DATA_HEADERS.get("Clear-Site-Data") == '"cache"'
|