Spaces:
Sleeping
Sleeping
| """Guards for vector store migration configuration.""" | |
| from pathlib import Path | |
| def test_pyproject_uses_pinecone_and_not_mongodb() -> None: | |
| """Dependency set should be Pinecone-only for vector storage.""" | |
| text = Path("pyproject.toml").read_text(encoding="utf-8") | |
| assert "pinecone>=" in text | |
| assert "pymongo" not in text | |
| assert "langchain-mongodb" not in text | |
| def test_env_example_declares_pinecone_index() -> None: | |
| """Example environment should include Pinecone index name.""" | |
| text = Path(".env.example").read_text(encoding="utf-8") | |
| assert "PINECONE_API_KEY=" in text | |
| assert "PINECONE_INDEX=" in text | |
| def test_pinecone_setup_runbook_exists() -> None: | |
| text = Path("docs/PINECONE_RAG_SETUP.md").read_text(encoding="utf-8") | |
| assert "pc index create" in text | |
| assert "multi-agent-index" in text | |