mirror of
https://github.com/langgenius/dify.git
synced 2025-07-14 20:49:56 +00:00
14 lines
437 B
Python
14 lines
437 B
Python
import pytest
|
|
|
|
from core.model_runtime.errors.validate import CredentialsValidateFailedError
|
|
from core.model_runtime.model_providers.sagemaker.sagemaker import SageMakerProvider
|
|
|
|
|
|
def test_validate_provider_credentials():
|
|
provider = SageMakerProvider()
|
|
|
|
with pytest.raises(CredentialsValidateFailedError):
|
|
provider.validate_provider_credentials(credentials={})
|
|
|
|
provider.validate_provider_credentials(credentials={})
|