feat: support configs for code execution request (#7704)
This commit is contained in:
parent
205d33a813
commit
3f467613fc
5 changed files with 40 additions and 23 deletions
|
|
@ -3,6 +3,7 @@ from textwrap import dedent
|
|||
|
||||
import pytest
|
||||
from flask import Flask
|
||||
from yarl import URL
|
||||
|
||||
from configs.app_config import DifyConfig
|
||||
|
||||
|
|
@ -84,3 +85,6 @@ def test_flask_configs(example_env_file):
|
|||
assert config["CONSOLE_WEB_URL"] == "https://example.com"
|
||||
assert config["CONSOLE_CORS_ALLOW_ORIGINS"] == ["https://example.com"]
|
||||
assert config["WEB_API_CORS_ALLOW_ORIGINS"] == ["*"]
|
||||
|
||||
assert str(config["CODE_EXECUTION_ENDPOINT"]) == "http://sandbox:8194/"
|
||||
assert str(URL(str(config["CODE_EXECUTION_ENDPOINT"])) / "v1") == "http://sandbox:8194/v1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue