Type each line into a bare `lite` shell against the gateway, then quit
(*lines: str, env: Mapping[str, str] | None = None)
| 12 | |
| 13 | |
| 14 | def _shell(*lines: str, env: Mapping[str, str] | None = None) -> Result: |
| 15 | """Type each line into a bare `lite` shell against the gateway, then quit""" |
| 16 | typed: Final = "".join(f"{line}\n" for line in (*lines, "quit")) |
| 17 | return CliRunner(env=env).invoke( |
| 18 | cli, ["--base-url", GATEWAY, "--api-key", "sk-shell"], input=typed, prog_name="lite" |
| 19 | ) |
| 20 | |
| 21 | |
| 22 | @pytest.fixture |
no test coverage detected