Skip to content

Commit c6cf11c

Browse files
wuliang229copybara-github
authored andcommitted
chore:Rename conformance create command to record
PiperOrigin-RevId: 822708044
1 parent 2724819 commit c6cf11c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/google/adk/cli/cli_tools_click.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def conformance():
127127
pass
128128

129129

130-
@conformance.command("create", cls=HelpfulCommand)
130+
@conformance.command("record", cls=HelpfulCommand)
131131
@click.argument(
132132
"paths",
133133
nargs=-1,
@@ -136,7 +136,7 @@ def conformance():
136136
),
137137
)
138138
@click.pass_context
139-
def cli_conformance_create(
139+
def cli_conformance_record(
140140
ctx,
141141
paths: tuple[str, ...],
142142
):
@@ -162,7 +162,7 @@ def cli_conformance_create(
162162
"""
163163

164164
try:
165-
from .conformance.cli_create import run_conformance_create
165+
from .conformance.cli_record import run_conformance_record
166166
except ImportError as e:
167167
click.secho(
168168
f"Error: Missing conformance testing dependencies: {e}",
@@ -178,7 +178,7 @@ def cli_conformance_create(
178178

179179
# Default to tests/ directory if no paths provided
180180
test_paths = [Path(p) for p in paths] if paths else [Path("tests").resolve()]
181-
asyncio.run(run_conformance_create(test_paths))
181+
asyncio.run(run_conformance_record(test_paths))
182182

183183

184184
@conformance.command("test", cls=HelpfulCommand)

src/google/adk/cli/conformance/cli_create.py renamed to src/google/adk/cli/conformance/cli_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def _create_conformance_test_files(
105105
return generated_session_file
106106

107107

108-
async def run_conformance_create(paths: list[Path]) -> None:
108+
async def run_conformance_record(paths: list[Path]) -> None:
109109
"""Generate conformance tests from TestCaseInput files.
110110
111111
Args:

0 commit comments

Comments
 (0)