chore:Rename conformance create command to record

PiperOrigin-RevId: 822708044
This commit is contained in:
Liang Wu
2025-10-22 13:03:37 -07:00
committed by Copybara-Service
parent 2724819622
commit c6cf11cb74
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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)
@@ -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: