소스 검색

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…
취소
저장