Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions scripts/generated_code_compile_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import sys
from pathlib import Path

import typer.main
from click.testing import CliRunner
from typer.testing import CliRunner

from aai_cli.main import app

Expand All @@ -24,8 +23,7 @@ def _write_fixture(
name: str,
args: tuple[str, ...],
) -> None:
command = typer.main.get_command(app)
result = runner.invoke(command, list(args), env=_ENV)
result = runner.invoke(app, list(args), env=_ENV)
if result.exit_code != 0:
detail = result.stderr.strip() or result.output.strip() or str(result.exception)
raise RuntimeError(f"{name}: {' '.join(args)} failed: {detail}")
Expand Down Expand Up @@ -108,7 +106,7 @@ def main() -> int:
),
)

runner = CliRunner(mix_stderr=False)
runner = CliRunner()
for name, args in cases:
_write_fixture(runner, out_dir, name, args)

Expand Down
68 changes: 39 additions & 29 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading