refactor: use dify_config to replace legacy usage of flask app's config (#9089)
This commit is contained in:
parent
8f670f31b8
commit
4d9160ca9f
27 changed files with 221 additions and 207 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import pytest
|
||||
|
||||
from app_factory import create_app
|
||||
from configs import dify_config
|
||||
|
||||
mock_user = type(
|
||||
"MockUser",
|
||||
|
|
@ -20,5 +21,5 @@ mock_user = type(
|
|||
@pytest.fixture
|
||||
def app():
|
||||
app = create_app()
|
||||
app.config["LOGIN_DISABLED"] = True
|
||||
dify_config.LOGIN_DISABLED = True
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue