Skip to content

Commit 819ef8d

Browse files
committed
test: update to fix test
1 parent aa417d4 commit 819ef8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_wheel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_main_default_tool(monkeypatch):
3131
"clang_tools.wheel.resolve_install",
3232
lambda tool, version: "/usr/bin/clang-format",
3333
)
34-
monkeypatch.setattr(sys, "argv", ["wheel.py"])
34+
# The CLI requires --tool; simulate running with the default tool explicitly
35+
monkeypatch.setattr(sys, "argv", ["wheel.py", "--tool", "clang-format"])
3536
exit_code = main()
3637
assert exit_code == 0

0 commit comments

Comments
 (0)