@@ -120,8 +120,6 @@ def test_passes_single_digit_python_version_to_uv(
120120
121121
122122class TestNewCommandUvFailures :
123- """Tests for error handling in the new command when uv fails."""
124-
125123 def test_failed_to_initialize_with_uv (self , monkeypatch : Any ) -> None :
126124 def mock_run (* args : Any , ** kwargs : Any ) -> None :
127125 # Let the first check for 'uv' succeed, but fail on 'uv init'
@@ -139,8 +137,6 @@ def mock_run(*args: Any, **kwargs: Any) -> None:
139137 def test_failed_to_add_dependencies (
140138 self , temp_project_dir : Path , monkeypatch : Any
141139 ) -> None :
142- """Test error handling when uv add fails."""
143-
144140 def mock_run (* args : Any , ** kwargs : Any ) -> None :
145141 # Let 'uv init' succeed, but fail on 'uv add'
146142 if args [0 ][0 ] == "uv" and args [0 ][1 ] == "add" :
@@ -155,7 +151,6 @@ def mock_run(*args: Any, **kwargs: Any) -> None:
155151 assert "Failed to install dependencies" in result .output
156152
157153 def test_file_write_failure (self , temp_project_dir : Path , monkeypatch : Any ) -> None :
158- """Test error handling when template file writing fails."""
159154 original_write_text = Path .write_text
160155
161156 def mock_write_text (self : Path , * args : Any , ** kwargs : Any ) -> None :
@@ -171,9 +166,6 @@ def mock_write_text(self: Path, *args: Any, **kwargs: Any) -> None:
171166 assert "Failed to write template files" in result .output
172167
173168 def test_uv_not_installed (self , temp_project_dir : Path , monkeypatch : Any ) -> None :
174- """Test error when uv is not installed."""
175- # The check_uv_installed fixture runs before this, but we want to test
176- # the case where uv disappears after that check
177169 monkeypatch .setattr (shutil , "which" , lambda _ : None )
178170
179171 result = runner .invoke (app , ["new" , "test_uv_missing_project" ])
0 commit comments