From aa613db5af60cb9f3be3f4b1fcbcd37224d69920 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Wed, 29 Jan 2025 00:39:42 +1100 Subject: [PATCH] Revert last-minute refactor. --- tests-unit/comfy_test/folder_path_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests-unit/comfy_test/folder_path_test.py b/tests-unit/comfy_test/folder_path_test.py index e79267363..481a59404 100644 --- a/tests-unit/comfy_test/folder_path_test.py +++ b/tests-unit/comfy_test/folder_path_test.py @@ -28,7 +28,6 @@ def temp_dir(): @pytest.fixture def set_base_dir(): def _set_base_dir(base_dir): - base_dir = os.path.abspath(base_dir) # Mock CLI args with patch.object(sys, 'argv', ["main.py", "--base-directory", base_dir]): reload(comfy.cli_args) @@ -114,7 +113,7 @@ def test_get_save_image_path(temp_dir): def test_base_path_changes(set_base_dir): - test_dir = "/test/dir" + test_dir = os.path.abspath("/test/dir") set_base_dir(test_dir) assert folder_paths.base_path == test_dir @@ -131,7 +130,7 @@ def test_base_path_changes(set_base_dir): def test_base_path_change_clears_old(set_base_dir): - test_dir = "/test/dir" + test_dir = os.path.abspath("/test/dir") set_base_dir(test_dir) assert len(folder_paths.get_folder_paths("custom_nodes")) == 1