Add tests for Multi-language support for Full-Text Search#44254
Merged
bambriz merged 16 commits intoAzure:mainfrom Dec 20, 2025
Merged
Add tests for Multi-language support for Full-Text Search#44254bambriz merged 16 commits intoAzure:mainfrom
bambriz merged 16 commits intoAzure:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive test coverage for multi-language support in the Azure Cosmos DB Python SDK's full-text search feature. The changes introduce tests that validate full-text policies with multiple supported languages (English, French, German, Italian, Portuguese variants, and Spanish) across both synchronous and asynchronous APIs.
Key changes include:
- Addition of centralized test data structures (supported_languages, language_abstracts, search_terms) to support multi-language testing
- Six new test methods in the sync version and seven in the async version to validate various multi-language scenarios
- Tests covering language replacement, fallback behavior, mismatched configurations, and multi-path multi-language policies
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| sdk/cosmos/azure-cosmos/tests/test_full_text_policy.py | Adds 6 new synchronous test methods and shared test data dictionaries for testing multi-language full-text search support, including language replacement, fallback, and multi-path scenarios |
| sdk/cosmos/azure-cosmos/tests/test_full_text_policy_async.py | Adds 7 new asynchronous test methods and shared test data dictionaries, mirroring sync tests plus an additional test for unsupported language validation |
Adding skips for the test as pipeline is not set up for multilanguage support
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Ignores spell check for words used as string literals for multi language support
simorenoh
reviewed
Dec 11, 2025
simorenoh
approved these changes
Dec 16, 2025
Member
Author
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
simorenoh
approved these changes
Dec 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds tests for multi-language support for Full-text search in Python SDK. Currently This feature is not yet available in the regions of the test pipeline so they will be skipped for now.
Currently the feature is not yet available for our testing pipelines so this Issue 44478 was made as a reminder to unskip them once it does become available.