mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08: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()
|