Skip to content

Implement LangChain standard unit tests for VectorStore #38

@webup

Description

@webup

Labels: testing, langchain-community, difficulty:medium
LOC: ~150

Description

Pin langchain-tests dependency and add standard unit tests for OceanbaseVectorStore.

References

Tasks

  • Pin langchain-tests = "==0.3.5" in pyproject.toml
  • Run poetry lock
  • Create tests/unit_tests/test_vectorstore_standard.py
  • Implement VectorStoreUnitTests subclass
  • Run and fix tests

Sample AI Prompts

Pin langchain-tests to version 0.3.5 in pyproject.toml and run poetry lock
Study https://github.com/langchain-ai/langchain-postgres/blob/main/tests/unit_tests/test_vectorstores.py
and create standard unit tests for OceanbaseVectorStore by subclassing VectorStoreUnitTests
from langchain_tests.unit_tests. Put the file in tests/unit_tests/test_vectorstore_standard.py
Run pytest tests/unit_tests/test_vectorstore_standard.py -v and fix any failing tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions