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:
James Collins
2023-07-08 09:27:43 -07:00
committed by GitHub
parent 426b7d12da
commit f6da992b3e
2 changed files with 1 additions and 8 deletions

View File

@@ -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"