Skip to content

feat: Implement unit tests for VectorStore (Issue #38)#60

Merged
xxsc0529 merged 3 commits into
oceanbase:mainfrom
NTLx:feature/issue-38-standard-unit-tests
Feb 10, 2026
Merged

feat: Implement unit tests for VectorStore (Issue #38)#60
xxsc0529 merged 3 commits into
oceanbase:mainfrom
NTLx:feature/issue-38-standard-unit-tests

Conversation

@NTLx

@NTLx NTLx commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

Closes #38

Changes

  • Added tests/unit_tests/test_vectorstore_standard.py to test OceanbaseVectorStore without database dependencies.
  • Updated pyproject.toml to resolve langchain-core version conflicts and pin langchain-tests.
  • Implemented robust mocking for ObVecClient to ensure tests run in CI environments.

Note on Standard Tests

The issue requested subclassing VectorStoreUnitTests from langchain_tests. However, this class does not exist in the current version (0.3.5) or latest version of langchain-tests. Therefore, I implemented a custom test suite that follows standard unit testing patterns using unittest.mock to isolate the database layer.

@NTLx

NTLx commented Feb 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi! This PR is now MERGEABLE with all CI checks passing.

Summary:

Ready for merge!

@xxsc0529 xxsc0529 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@xxsc0529 xxsc0529 merged commit fdbdefc into oceanbase:main Feb 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement LangChain standard unit tests for VectorStore

2 participants