We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c4ddf commit 4ad3ebeCopy full SHA for 4ad3ebe
tests/tests_api/test_server_config.py
@@ -37,8 +37,9 @@ def test_env_override(self):
37
"RAGLIGHT_PERSIST_DIR": "/tmp/mydb",
38
"RAGLIGHT_COLLECTION": "myproject",
39
"RAGLIGHT_K": "10",
40
- "RAGLIGHT_CHROMA_HOST": "chromadb",
41
- "RAGLIGHT_CHROMA_PORT": "8001",
+ "RAGLIGHT_DB": "chromadb",
+ "RAGLIGHT_DB_PORT": "8001",
42
+ "RAGLIGHT_DB_HOST": "localhost",
43
}
44
with patch.dict(os.environ, {**_clean_env(), **env}, clear=True):
45
cfg = ServerConfig()
@@ -51,8 +52,9 @@ def test_env_override(self):
51
52
self.assertEqual(cfg.persist_dir, "/tmp/mydb")
53
self.assertEqual(cfg.collection, "myproject")
54
self.assertEqual(cfg.k, 10)
- self.assertEqual(cfg.chroma_host, "chromadb")
55
- self.assertEqual(cfg.chroma_port, 8001)
+ self.assertEqual(cfg.db_host, "localhost")
56
+ self.assertEqual(cfg.db_port, 8001)
57
+ self.assertEqual(cfg.db, "chroma")
58
59
def test_to_rag_config_returns_correct_type(self):
60
with patch.dict(os.environ, _clean_env(), clear=True):
0 commit comments