From 3592c0a215d0ec83dac1aa1260f5e6bb4468b743 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 3 Jun 2025 19:48:37 +0800 Subject: [PATCH] tests: Sets up storage configuration for tests Signed-off-by: -LAN- --- api/tests/integration_tests/workflow/nodes/test_llm.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/tests/integration_tests/workflow/nodes/test_llm.py b/api/tests/integration_tests/workflow/nodes/test_llm.py index 981ffd80d6..6aa48b1cbb 100644 --- a/api/tests/integration_tests/workflow/nodes/test_llm.py +++ b/api/tests/integration_tests/workflow/nodes/test_llm.py @@ -32,6 +32,14 @@ from tests.integration_tests.workflow.nodes.__mock.code_executor import setup_co @pytest.fixture(scope="session") def app(): + # Set up storage configuration + os.environ["STORAGE_TYPE"] = "opendal" + os.environ["OPENDAL_SCHEME"] = "fs" + os.environ["OPENDAL_FS_ROOT"] = "storage" + + # Ensure storage directory exists + os.makedirs("storage", exist_ok=True) + app = create_app() dify_config.LOGIN_DISABLED = True return app