mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-11-02 07:38:51 +00:00
refactor: Refactor storage system (#937)
This commit is contained in:
14
dbgpt/core/interface/tests/conftest.py
Normal file
14
dbgpt/core/interface/tests/conftest.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
from dbgpt.core.interface.storage import InMemoryStorage
|
||||
from dbgpt.util.serialization.json_serialization import JsonSerializer
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def serializer():
|
||||
return JsonSerializer()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def in_memory_storage(serializer):
|
||||
return InMemoryStorage(serializer)
|
||||
Reference in New Issue
Block a user