tests: Sets up storage configuration for tests

Signed-off-by: -LAN- <laipz8200@outlook.com>
pull/20586/head
-LAN- 12 months ago
parent 536c1d058c
commit 3592c0a215
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

@ -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

Loading…
Cancel
Save