Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting up test_crud and test_crud_async #40149

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

andrewmathew1
Copy link
Contributor

Description

Splitting up test_crud and test_crud_async file into test_crud_database, test_crud_container, and test_crud will be used for the document level tests. This splits up the massive test_crud file and makes the tests more maintainable.

@Copilot Copilot bot review requested due to automatic review settings March 19, 2025 21:45
@andrewmathew1 andrewmathew1 requested review from annatisch and a team as code owners March 19, 2025 21:45
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR splits the existing test_crud file into separate files for database, container, and document-level tests.

  • Separation of synchronous and asynchronous CRUD tests for improved maintainability
  • Consolidation of database-level CRUD test logic in two newly created files

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

File Description
sdk/cosmos/azure-cosmos/tests/test_crud_database.py Introduces synchronous database-level CRUD tests extracted from the original test_crud file
sdk/cosmos/azure-cosmos/tests/test_crud_database_async.py Introduces asynchronous database-level CRUD tests extracted from the original test_crud_async file

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants