@@ -43,13 +43,6 @@ def mock_pr_cache():
4343class TestLaunchWithFrontendPR :
4444 """Test launching with temporary frontend PR"""
4545
46- def test_launch_help_shows_frontend_pr_option (self , runner ):
47- """Test that launch command shows --frontend-pr option"""
48- result = runner .invoke (app , ["launch" , "--help" ])
49- assert result .exit_code == 0
50- assert "--frontend-pr" in result .output
51- assert "Use a specific frontend PR" in result .output
52-
5346 @patch ("comfy_cli.command.install.verify_node_tools" )
5447 def test_launch_frontend_pr_without_node (self , mock_verify ):
5548 """Test launch with frontend PR when Node.js is missing"""
@@ -274,23 +267,3 @@ def test_pr_cache_clean_command_with_yes_flag(self, runner):
274267 result = runner .invoke (app , ["pr-cache" , "clean" , "--yes" ])
275268 assert result .exit_code == 0
276269 mock_cache .clean_frontend_cache .assert_called_once_with ()
277-
278-
279- class TestLaunchIntegration :
280- """Test launch command integration with frontend PR"""
281-
282- @patch ("comfy_cli.command.install.handle_temporary_frontend_pr" )
283- @patch ("comfy_cli.command.launch.subprocess.run" )
284- @patch ("comfy_cli.command.launch.os.chdir" )
285- @patch ("comfy_cli.command.launch.workspace_manager" )
286- def test_launch_with_frontend_pr_flag (self , mock_wm , mock_chdir , mock_run , mock_handle_pr , runner ):
287- """Test launch command with --frontend-pr flag"""
288- # Setup mocks
289- mock_wm .workspace_path = "/test/ComfyUI"
290- mock_handle_pr .return_value = "/cache/frontend/dist"
291- mock_run .return_value = Mock (returncode = 0 )
292-
293- # This will fail because of the full integration, but we're testing the option exists
294- result = runner .invoke (app , ["launch" , "--frontend-pr" , "#123" , "--help" ])
295- assert result .exit_code == 0
296- assert "--frontend-pr" in result .output
0 commit comments