mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-28 11:24:30 +01:00
Drop AbstractSingleton as a parent class of the vector memory (#4901)
* Drop AbstractSingleton as a parent class of the vector memory * Forgot pytest fixture in integration tests * Revert typo
This commit is contained in:
@@ -8,12 +8,6 @@ from autogpt.memory.vector import JSONFileMemory, MemoryItem
|
||||
from autogpt.workspace import Workspace
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def cleanup_sut_singleton():
|
||||
if JSONFileMemory in JSONFileMemory._instances:
|
||||
del JSONFileMemory._instances[JSONFileMemory]
|
||||
|
||||
|
||||
def test_json_memory_init_without_backing_file(config: Config, workspace: Workspace):
|
||||
index_file = workspace.root / f"{config.memory_index}.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user