fix(runner): 修复命令行策略默认值与构造参数不一致的问题

This commit is contained in:
2026-06-21 19:07:47 +08:00
parent 1ecff5fdf7
commit c8e9354e87
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -167,10 +167,10 @@ class TestCliRunnerParser:
def test_parser_strategy_default(self) -> None:
"""--strategy 默认值应与构造时一致."""
runner = px.CliRunner({"clean": _echo_graph()}, "async")
runner = px.CliRunner({"clean": _echo_graph()}, strategy="async")
parser = runner.create_parser()
parsed = parser.parse_args(["clean"])
assert parsed.strategy == "sequential"
assert parsed.strategy == "async"
def test_parser_has_dry_run_flag(self) -> None:
"""解析器应有 --dry-run 标志."""