Creates a FastAPIAppAdapter app instance for testing.
(core_lifecycle_td: AstrBotCoreLifecycle)
| 84 | |
| 85 | @pytest.fixture(scope="module") |
| 86 | def 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 | |
| 93 | def _resolve_dashboard_password(core_lifecycle_td: AstrBotCoreLifecycle) -> str: |
nothing calls this directly
no test coverage detected