Home / Function/ test_create_collection_if_not_exist_false_non_existing() — langchain Function Reference

test_create_collection_if_not_exist_false_non_existing() — langchain Function Reference

Architecture documentation for the test_create_collection_if_not_exist_false_non_existing() function in test_vectorstores.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1eb4d172_8c69_7d3c_6e9d_483d9fb8acd9["test_create_collection_if_not_exist_false_non_existing()"]
  289e5a4f_8e2e_ddb6_af2e_804f91dabdb8["test_vectorstores.py"]
  1eb4d172_8c69_7d3c_6e9d_483d9fb8acd9 -->|defined in| 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8
  style 1eb4d172_8c69_7d3c_6e9d_483d9fb8acd9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/chroma/tests/integration_tests/test_vectorstores.py lines 745–756

def test_create_collection_if_not_exist_false_non_existing(
    client: chromadb.ClientAPI,
) -> None:
    """Tests create_collection_if_not_exists=False and collection not-existing,
    should raise."""
    with pytest.raises(Exception, match="does not exist"):
        Chroma(
            client=client,
            collection_name="test_collection",
            embedding_function=FakeEmbeddings(),
            create_collection_if_not_exists=False,
        )

Domain

Subdomains

Frequently Asked Questions

What does test_create_collection_if_not_exist_false_non_existing() do?
test_create_collection_if_not_exist_false_non_existing() is a function in the langchain codebase, defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py.
Where is test_create_collection_if_not_exist_false_non_existing() defined?
test_create_collection_if_not_exist_false_non_existing() is defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py at line 745.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free