style: format
This commit is contained in:
@@ -38,9 +38,7 @@ def _codex_check_setup(_config: EngineConfig, _config_path: Path) -> list[SetupI
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def _codex_build_runner(
|
def _codex_build_runner(config: EngineConfig, config_path: Path) -> Runner:
|
||||||
config: EngineConfig, config_path: Path
|
|
||||||
) -> Runner:
|
|
||||||
codex_cmd = shutil.which("codex")
|
codex_cmd = shutil.which("codex")
|
||||||
if not codex_cmd:
|
if not codex_cmd:
|
||||||
raise ConfigError(
|
raise ConfigError(
|
||||||
|
|||||||
@@ -66,4 +66,3 @@ def test_translate_mcp_tool_call_summarizes_legacy_structured_key() -> None:
|
|||||||
assert len(out) == 1
|
assert len(out) == 1
|
||||||
assert isinstance(out[0], ActionEvent)
|
assert isinstance(out[0], ActionEvent)
|
||||||
assert out[0].action.detail["result_summary"]["has_structured"] is True
|
assert out[0].action.detail["result_summary"]["has_structured"] is True
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ def test_render_event_cli_handles_action_kinds() -> None:
|
|||||||
)
|
)
|
||||||
assert any("tool: github.search_issues" in line for line in out)
|
assert any("tool: github.search_issues" in line for line in out)
|
||||||
assert any(
|
assert any(
|
||||||
"files: added `README.md`, updated `src/compute_answer.py`" in line for line in out
|
"files: added `README.md`, updated `src/compute_answer.py`" in line
|
||||||
|
for line in out
|
||||||
)
|
)
|
||||||
assert any(line.startswith("✗ stream error") for line in out)
|
assert any(line.startswith("✗ stream error") for line in out)
|
||||||
|
|
||||||
@@ -103,7 +104,9 @@ def test_file_change_renders_relative_paths_inside_cwd() -> None:
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
assert any("files: updated `README.md`, updated `README.md`" in line for line in out)
|
assert any(
|
||||||
|
"files: updated `README.md`, updated `README.md`" in line for line in out
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_progress_renderer_renders_progress_and_final() -> None:
|
def test_progress_renderer_renders_progress_and_final() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user