mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 16:50:39 +08:00
refactor: use EnumText for credential_type in TriggerSubscription (#34174)
Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,7 @@ from uuid import uuid4
|
||||
|
||||
import pytest
|
||||
|
||||
from core.plugin.entities.plugin_daemon import CredentialType
|
||||
from models.tools import BuiltinToolProvider
|
||||
from services.plugin.plugin_parameter_service import PluginParameterService
|
||||
|
||||
@@ -66,7 +67,7 @@ class TestGetDynamicSelectOptionsTool:
|
||||
provider="google",
|
||||
name="API KEY 1",
|
||||
encrypted_credentials=json.dumps({"api_key": "encrypted"}),
|
||||
credential_type="api_key",
|
||||
credential_type=CredentialType.API_KEY,
|
||||
)
|
||||
db_session_with_containers.add(db_record)
|
||||
db_session_with_containers.commit()
|
||||
|
||||
Reference in New Issue
Block a user