(temp_root: Path)
| 143 | |
| 144 | |
| 145 | async def _run_plugin_command_flow(temp_root: Path) -> None: |
| 146 | registry = create_default_command_registry() |
| 147 | context = _make_command_context(temp_root) |
| 148 | plugin_source = _write_plugin(temp_root / "plugin-command-source") |
| 149 | |
| 150 | for raw in [ |
| 151 | f"/plugin install {plugin_source}", |
| 152 | "/plugin disable fixture-plugin", |
| 153 | "/plugin enable fixture-plugin", |
| 154 | "/plugin uninstall fixture-plugin", |
| 155 | ]: |
| 156 | command, args = registry.lookup(raw) |
| 157 | result = await command.handler(args, context) |
| 158 | if result.message is None: |
| 159 | raise AssertionError(f"no result for {raw}") |
| 160 | print("[plugin-commands] PASS") |
| 161 | |
| 162 | |
| 163 | async def _run_bridge_flow(temp_root: Path) -> None: |
no test coverage detected