mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
test: comprehensive test coverage and type fixes
- Add 100+ new test files covering provider sources, platform adapters, agent runners, star/plugin system, knowledge base, core utils, pipeline, computer tools, builtin commands, and dashboard routes - Fix Python type errors in sqlite.py (col() wrappers for SQLModel), astr_agent_tool_exec, core_lifecycle, star context/manager - Fix TypeScript strict mode errors across 30+ dashboard Vue files - Add import smoke tests, auth roundtrip, startup tests - Add compile-all check and CLI entry test for AUR compatibility - Restore BotMessageAccumulator and helpers lost in merge
This commit is contained in:
@@ -332,6 +332,11 @@ class BlockingSubagentContext:
|
||||
def get_config(self, **_kwargs):
|
||||
return {"provider_settings": {}}
|
||||
|
||||
def get_llm_tool_manager(self):
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
return MagicMock()
|
||||
|
||||
async def tool_loop_agent(self, **_kwargs):
|
||||
self.started.set()
|
||||
try:
|
||||
@@ -1252,7 +1257,7 @@ async def test_skills_like_requery_passes_extra_user_content_parts():
|
||||
run_context=run_context,
|
||||
tool_executor=cast(Any, MockToolExecutor()),
|
||||
agent_hooks=MockHooks(),
|
||||
tool_schema_mode="lazy_load",
|
||||
tool_schema_mode="skills_like",
|
||||
)
|
||||
|
||||
async for _ in runner.step():
|
||||
|
||||
Reference in New Issue
Block a user