File tree Expand file tree Collapse file tree
integrations/chroma/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ async def test_client_settings_applied_async(self):
107107 await store ._ensure_initialized_async ()
108108 assert store ._async_client .get_settings ().anonymized_telemetry is False
109109
110- async def test_invalid_client_settings_async (self ):
110+ async def test_invalid_client_settings_are_ignored_async (self ):
111111 store = ChromaDocumentStore (
112112 host = "localhost" ,
113113 port = 8000 ,
@@ -117,8 +117,10 @@ async def test_invalid_client_settings_async(self):
117117 },
118118 collection_name = f"{ uuid .uuid1 ()} -async-invalid" ,
119119 )
120- with pytest .raises (ValueError , match = "Invalid client_settings" ):
121- await store ._ensure_initialized_async ()
120+ await store ._ensure_initialized_async ()
121+ settings = store ._async_client .get_settings ()
122+ assert not hasattr (settings , "invalid_setting_name" )
123+ assert not hasattr (settings , "another_fake_setting" )
122124
123125 async def test_search_async (self ):
124126 document_store = ChromaDocumentStore (host = "localhost" , port = 8000 , collection_name = "my_custom_collection" )
You can’t perform that action at this time.
0 commit comments