mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-25 02:33:00 +08:00
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -10,12 +10,8 @@ def test_validate_provider_credentials():
|
||||
provider = TongyiProvider()
|
||||
|
||||
with pytest.raises(CredentialsValidateFailedError):
|
||||
provider.validate_provider_credentials(
|
||||
credentials={}
|
||||
)
|
||||
provider.validate_provider_credentials(credentials={})
|
||||
|
||||
provider.validate_provider_credentials(
|
||||
credentials={
|
||||
'dashscope_api_key': os.environ.get('TONGYI_DASHSCOPE_API_KEY')
|
||||
}
|
||||
credentials={"dashscope_api_key": os.environ.get("TONGYI_DASHSCOPE_API_KEY")}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user