mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
test/tools: clean shell confirm format test
This commit is contained in:
@@ -114,7 +114,6 @@ 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 = chr(10).join(["line1", "line2", "line3"])
|
||||
reason = classify_danger(
|
||||
@@ -131,3 +130,4 @@ def test_shell_confirm_formats_command_placeholder() -> None:
|
||||
body = lines[idx + 1 :]
|
||||
assert body
|
||||
assert all(ln.startswith(" ") for ln in body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user