mirror of
https://github.com/langchain-ai/langchain-pinecone.git
synced 2026-07-19 22:03:33 -04:00
test/vectorstore-entrypoint-tests
## Purpose Cover the public classmethods get_pinecone_index, from_texts, afrom_texts, and from_existing_index with unit tests. These are the primary entrypoints users call, but were only exercised by the credentialed integration suite. ## Solution Add six unit tests that mock PineconeClient / PineconeAsyncioClient (using existing spec-backed fixtures) to cover: - get_pinecone_index: returns named index, raises on empty project, raises on unknown name (both ValueError branches) - from_texts: orchestrates get_pinecone_index → constructor → add_texts - from_existing_index: constructs store without invoking any embedding - afrom_texts (async twin): constructs via index_name and delegates to aadd_texts
🦜️🔗 LangChain Pinecone
This repository contains 1 package with Pinecone integrations with LangChain:
Releases
10
Languages
Python
99.1%
Makefile
0.8%
Shell
0.1%