From d2acf8a93f0332ed0d7ab9f5c9dfb9b82969e359 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Thu, 29 Aug 2024 18:23:26 -0700 Subject: [PATCH] Fix frontend manager test patch --- tests/unit/app_test/frontend_manager_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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