mirror of
https://github.com/langgenius/dify.git
synced 2025-07-18 14:52:32 +00:00
19 lines
537 B
Python
19 lines
537 B
Python
![]() |
from collections.abc import Generator
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
from extensions.storage.local_fs_storage import LocalFsStorage
|
||
|
from tests.unit_tests.oss.__mock.base import (
|
||
|
BaseStorageTest,
|
||
|
get_example_folder,
|
||
|
)
|
||
|
from tests.unit_tests.oss.__mock.local import setup_local_fs_mock
|
||
|
|
||
|
|
||
|
class TestLocalFS(BaseStorageTest):
|
||
|
@pytest.fixture(autouse=True)
|
||
|
def setup_method(self, setup_local_fs_mock):
|
||
|
"""Executed before each test method."""
|
||
|
self.storage = LocalFsStorage()
|
||
|
self.storage.folder = get_example_folder()
|