Skip to content

Commit 40d0077

Browse files
committed
fix test
1 parent 4ad3ebe commit 40d0077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/tests_api/test_server_config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def test_defaults(self):
2323
self.assertEqual(cfg.embeddings_provider, Settings.HUGGINGFACE)
2424
self.assertEqual(cfg.collection, "default")
2525
self.assertEqual(cfg.k, Settings.DEFAULT_K)
26-
self.assertIsNone(cfg.chroma_host)
27-
self.assertIsNone(cfg.chroma_port)
26+
self.assertIsNone(cfg.db_host)
27+
self.assertIsNone(cfg.db_port)
2828

2929
def test_env_override(self):
3030
env = {
@@ -54,7 +54,7 @@ def test_env_override(self):
5454
self.assertEqual(cfg.k, 10)
5555
self.assertEqual(cfg.db_host, "localhost")
5656
self.assertEqual(cfg.db_port, 8001)
57-
self.assertEqual(cfg.db, "chroma")
57+
self.assertEqual(cfg.db, "chromadb")
5858

5959
def test_to_rag_config_returns_correct_type(self):
6060
with patch.dict(os.environ, _clean_env(), clear=True):
@@ -78,8 +78,8 @@ def test_to_vector_store_config_returns_correct_type(self):
7878
def test_to_vector_store_config_chroma_host(self):
7979
env = {
8080
**_clean_env(),
81-
"RAGLIGHT_CHROMA_HOST": "chromadb",
82-
"RAGLIGHT_CHROMA_PORT": "8000",
81+
"RAGLIGHT_DB_HOST": "chromadb",
82+
"RAGLIGHT_DB_PORT": "8000",
8383
}
8484
with patch.dict(os.environ, env, clear=True):
8585
cfg = ServerConfig()

0 commit comments

Comments
 (0)