mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +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
690 B
Python
23 lines
690 B
Python
"""Import smoke tests for the command dashboard route module.
|
|
|
|
Verifies that all public classes from ``command.py`` can be imported
|
|
without errors.
|
|
"""
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# command.py -- CommandRoute and module-level helper
|
|
# ---------------------------------------------------------------------------
|
|
from astrbot.dashboard.routes.command import (
|
|
CommandRoute, # noqa: F401
|
|
_get_command_payload, # noqa: F401
|
|
)
|
|
|
|
|
|
def test_command_route_class():
|
|
assert CommandRoute is not None
|
|
|
|
|
|
def test_get_command_payload_is_async_function():
|
|
import inspect
|
|
assert inspect.iscoroutinefunction(_get_command_payload)
|