mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
21 lines
556 B
Python
21 lines
556 B
Python
import pytest
|
|
|
|
from dify_plugin.interfaces.datasource import DatasourceProvider
|
|
|
|
|
|
def test_construct_datasource_provider():
|
|
"""
|
|
Test that the DatasourceProvider can be constructed without implementing any methods
|
|
"""
|
|
provider = DatasourceProvider()
|
|
assert provider is not None
|
|
|
|
|
|
def test_oauth_get_authorization_url():
|
|
"""
|
|
Test that the DatasourceProvider can get the authorization url
|
|
"""
|
|
provider = DatasourceProvider()
|
|
with pytest.raises(NotImplementedError):
|
|
provider.oauth_get_authorization_url("", {})
|