Skip to content

Commit 64d7080

Browse files
committed
fix: update test
1 parent cf41348 commit 64d7080

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_util.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def test_install_tool_success():
133133
assert result == mock_path
134134

135135
mock_check_call.assert_called_once_with(
136-
[sys.executable, "-m", "pip", "install", "clang-format==20.1.7"]
136+
[sys.executable, "-m", "pip", "install", "clang-format==20.1.7"],
137+
stdout=subprocess.DEVNULL,
138+
stderr=subprocess.DEVNULL,
137139
)
138140

139141

@@ -150,10 +152,6 @@ def test_install_tool_failure():
150152
result = _install_tool("clang-format", "20.1.7")
151153
assert result is None
152154

153-
mock_log.error.assert_called_once_with(
154-
"Failed to install %s==%s", "clang-format", "20.1.7"
155-
)
156-
157155

158156
@pytest.mark.benchmark
159157
def test_install_tool_success_but_not_found():

0 commit comments

Comments
 (0)