MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / app

Function app

tests/test_kb_import.py:86–90  ·  view source on GitHub ↗

Creates a FastAPIAppAdapter app instance for testing.

(core_lifecycle_td: AstrBotCoreLifecycle)

Source from the content-addressed store, hash-verified

84
85@pytest.fixture(scope="module")
86def app(core_lifecycle_td: AstrBotCoreLifecycle):
87 """Creates a FastAPIAppAdapter app instance for testing."""
88 shutdown_event = asyncio.Event()
89 server = AstrBotDashboard(core_lifecycle_td, core_lifecycle_td.db, shutdown_event)
90 return server.app
91
92
93def _resolve_dashboard_password(core_lifecycle_td: AstrBotCoreLifecycle) -> str:

Callers

nothing calls this directly

Calls 1

AstrBotDashboardClass · 0.90

Tested by

no test coverage detected