mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore:Rename conformance create command to record
PiperOrigin-RevId: 822708044
This commit is contained in:
committed by
Copybara-Service
parent
2724819622
commit
c6cf11cb74
@@ -127,7 +127,7 @@ def conformance():
|
||||
pass
|
||||
|
||||
|
||||
@conformance.command("create", cls=HelpfulCommand)
|
||||
@conformance.command("record", cls=HelpfulCommand)
|
||||
@click.argument(
|
||||
"paths",
|
||||
nargs=-1,
|
||||
@@ -136,7 +136,7 @@ def conformance():
|
||||
),
|
||||
)
|
||||
@click.pass_context
|
||||
def cli_conformance_create(
|
||||
def cli_conformance_record(
|
||||
ctx,
|
||||
paths: tuple[str, ...],
|
||||
):
|
||||
@@ -162,7 +162,7 @@ def cli_conformance_create(
|
||||
"""
|
||||
|
||||
try:
|
||||
from .conformance.cli_create import run_conformance_create
|
||||
from .conformance.cli_record import run_conformance_record
|
||||
except ImportError as e:
|
||||
click.secho(
|
||||
f"Error: Missing conformance testing dependencies: {e}",
|
||||
@@ -178,7 +178,7 @@ def cli_conformance_create(
|
||||
|
||||
# Default to tests/ directory if no paths provided
|
||||
test_paths = [Path(p) for p in paths] if paths else [Path("tests").resolve()]
|
||||
asyncio.run(run_conformance_create(test_paths))
|
||||
asyncio.run(run_conformance_record(test_paths))
|
||||
|
||||
|
||||
@conformance.command("test", cls=HelpfulCommand)
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ async def _create_conformance_test_files(
|
||||
return generated_session_file
|
||||
|
||||
|
||||
async def run_conformance_create(paths: list[Path]) -> None:
|
||||
async def run_conformance_record(paths: list[Path]) -> None:
|
||||
"""Generate conformance tests from TestCaseInput files.
|
||||
|
||||
Args:
|
||||
Reference in New Issue
Block a user