mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-30 01:55:17 +08:00
test(test_dify_config): Update test to use example environment file (#19427)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
ee3b66bdcd
commit
b4064fa092
@ -102,7 +102,7 @@ def test_flask_configs(example_env_file):
|
|||||||
assert str(URL(str(config["CODE_EXECUTION_ENDPOINT"])) / "v1") == "http://sandbox:8194/v1"
|
assert str(URL(str(config["CODE_EXECUTION_ENDPOINT"])) / "v1") == "http://sandbox:8194/v1"
|
||||||
|
|
||||||
|
|
||||||
def test_inner_api_config_exist():
|
def test_inner_api_config_exist(example_env_file):
|
||||||
config = DifyConfig()
|
config = DifyConfig(_env_file=example_env_file)
|
||||||
assert config.INNER_API is False
|
assert config.INNER_API is False
|
||||||
assert config.INNER_API_KEY is None
|
assert config.INNER_API_KEY is None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user