feat: isolate test config from main config (#1063)

Co-authored-by: Charles Packer <packercharles@gmail.com>
This commit is contained in:
tombedor
2024-03-06 11:21:37 +11:00
committed by GitHub
parent 83eb401be8
commit b665e67b01
17 changed files with 197 additions and 135 deletions

7
tests/config.py Normal file
View File

@@ -0,0 +1,7 @@
import os
from memgpt.config import MemGPTConfig
from memgpt.constants import MEMGPT_DIR
class TestMGPTConfig(MemGPTConfig):
config_path: str = os.getenv("TEST_MEMGPT_CONFIG_PATH") or os.getenv("MEMGPT_CONFIG_PATH") or os.path.join(MEMGPT_DIR, "config")