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