Преглед изворни кода

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/1.4.0
-LAN- пре 5 месеци
родитељ
комит
b4064fa092
No account linked to committer's email address
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      api/tests/unit_tests/configs/test_dify_config.py

+ 2
- 2
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

Loading…
Откажи
Сачувај