Start a real DashboardServer on a random port. Stops on teardown.
()
| 43 | |
| 44 | @pytest.fixture |
| 45 | async def live_server(): |
| 46 | """Start a real DashboardServer on a random port. Stops on teardown.""" |
| 47 | from mcp_cli.dashboard.server import DashboardServer |
| 48 | |
| 49 | srv = DashboardServer() |
| 50 | port = await srv.start(port=0) |
| 51 | yield srv, port |
| 52 | await srv.stop() |
| 53 | |
| 54 | |
| 55 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected