From fa9f28687f3cba80e0c98c4e8ba25e2df2d1ad97 Mon Sep 17 00:00:00 2001 From: worldmozara Date: Sun, 19 Jul 2026 13:02:24 +0800 Subject: [PATCH] test/tools: fix shell confirm format test syntax --- tests/test_tools/test_danger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_tools/test_danger.py b/tests/test_tools/test_danger.py index a4f5d31..4ae8c66 100644 --- a/tests/test_tools/test_danger.py +++ b/tests/test_tools/test_danger.py @@ -114,10 +114,9 @@ async def test_confirm_deny_with_comment() -> None: assert "user comment:" in out assert "too destructive" in out + def test_shell_confirm_formats_command_placeholder() -> None: - script = "line1" + " -" + "line2" + " -" + "line3" + script = chr(10).join(["line1", "line2", "line3"]) reason = classify_danger( "run_command", {"command": ["bash", "-c", script]},