Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

test(test_dify_config): Update test to use example environment file (#19427)

-LAN-b4064fa0925b
diff --git a/api/tests/unit_tests/configs/test_dify_config.py b/api/tests/unit_tests/configs/test_dify_config.py
index 88938a0ee8e..fafaf0419a8 100644
--- a/api/tests/unit_tests/configs/test_dify_config.py
+++ b/api/tests/unit_tests/configs/test_dify_config.py
@@ -102,7 +102,7 @@ def test_flask_configs(example_env_file):
assert str(URL(str(config["CODE_EXECUTION_ENDPOINT"])) / "v1") == "http://sandbox:8194/v1"
-def test_inner_api_config_exist():
- config = DifyConfig()
+def test_inner_api_config_exist(example_env_file):
+ config = DifyConfig(_env_file=example_env_file)
assert config.INNER_API is False
assert config.INNER_API_KEY is None