2024-07-18 19:32:31 +08:00
|
|
|
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):
|
2024-08-23 23:52:25 +08:00
|
|
|
provider.validate_provider_credentials(credentials={})
|
2024-07-18 19:32:31 +08:00
|
|
|
|
2024-08-23 23:52:25 +08:00
|
|
|
provider.validate_provider_credentials(credentials={})
|