Skip to content

Commit fa804db

Browse files
committed
feat(*): fix unit tests
1 parent f8e1b11 commit fa804db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_execute_success(self, mock_run: MagicMock) -> None:
1313
assert exit_code == 0
1414
mock_run.assert_called_once()
1515

16-
@patch("uvtask.executor.subprocess.run")
16+
@patch("uvtask.executor.run")
1717
def test_execute_with_quiet(self, mock_run: MagicMock) -> None:
1818
mock_run.return_value = CompletedProcess(["echo", "test"], 0)
1919
executor = CommandExecutor()
@@ -22,7 +22,7 @@ def test_execute_with_quiet(self, mock_run: MagicMock) -> None:
2222
call_kwargs = mock_run.call_args[1]
2323
assert call_kwargs["stdout"] is not None or call_kwargs.get("stdout") is None
2424

25-
@patch("uvtask.executor.subprocess.run")
25+
@patch("uvtask.executor.run")
2626
def test_execute_with_double_quiet(self, mock_run: MagicMock) -> None:
2727
mock_run.return_value = CompletedProcess(["echo", "test"], 0)
2828
executor = CommandExecutor()

0 commit comments

Comments
 (0)