ソースを参照

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
コミッターのメールアドレスに関連付けられたアカウントが存在しません
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

読み込み中…
キャンセル
保存