diff --git a/tests/unit/app_test/frontend_manager_test.py b/tests/unit/app_test/frontend_manager_test.py index c9f292cac..826f1b25a 100644 --- a/tests/unit/app_test/frontend_manager_test.py +++ b/tests/unit/app_test/frontend_manager_test.py @@ -87,15 +87,15 @@ def test_init_frontend_invalid_provider(): @pytest.fixture def mock_os_functions(): - with patch('app.frontend_management.os.makedirs') as mock_makedirs, \ - patch('app.frontend_management.os.listdir') as mock_listdir, \ - patch('app.frontend_management.os.rmdir') as mock_rmdir: + with patch('comfy.app.frontend_management.os.makedirs') as mock_makedirs, \ + patch('comfy.app.frontend_management.os.listdir') as mock_listdir, \ + patch('comfy.app.frontend_management.os.rmdir') as mock_rmdir: mock_listdir.return_value = [] # Simulate empty directory yield mock_makedirs, mock_listdir, mock_rmdir @pytest.fixture def mock_download(): - with patch('app.frontend_management.download_release_asset_zip') as mock: + with patch('comfy.app.frontend_management.download_release_asset_zip') as mock: mock.side_effect = Exception("Download failed") # Simulate download failure yield mock