You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 123456789101112131415 |
- import os
-
- import pytest
-
- from core.model_runtime.errors.validate import CredentialsValidateFailedError
- from core.model_runtime.model_providers.jina.jina import JinaProvider
-
-
- def test_validate_provider_credentials():
- provider = JinaProvider()
-
- with pytest.raises(CredentialsValidateFailedError):
- provider.validate_provider_credentials(credentials={"api_key": "hahahaha"})
-
- provider.validate_provider_credentials(credentials={"api_key": os.environ.get("JINA_API_KEY")})
|