feat: integrate opendal storage (#11508)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
1765fe2a29
commit
8d4bb9b40d
17 changed files with 798 additions and 597 deletions
|
|
@ -6,7 +6,7 @@ from extensions.storage.base_storage import BaseStorage
|
|||
|
||||
|
||||
def get_example_folder() -> str:
|
||||
return "/dify"
|
||||
return "~/dify"
|
||||
|
||||
|
||||
def get_example_bucket() -> str:
|
||||
|
|
@ -22,14 +22,14 @@ def get_example_data() -> bytes:
|
|||
|
||||
|
||||
def get_example_filepath() -> str:
|
||||
return "/test"
|
||||
return "~/test"
|
||||
|
||||
|
||||
class BaseStorageTest:
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup_method(self):
|
||||
def setup_method(self, *args, **kwargs):
|
||||
"""Should be implemented in child classes to setup specific storage."""
|
||||
self.storage = BaseStorage()
|
||||
self.storage: BaseStorage
|
||||
|
||||
def test_save(self):
|
||||
"""Test saving data."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue