Skip to content

refactor: Extract reusable framework from tests#2

Open
nitinahuja89 wants to merge 1 commit intodocumentdb:mainfrom
nitinahuja89:test-organization
Open

refactor: Extract reusable framework from tests#2
nitinahuja89 wants to merge 1 commit intodocumentdb:mainfrom
nitinahuja89:test-organization

Conversation

@nitinahuja89
Copy link
Collaborator

  • Create framework/ package with assertions and fixtures modules
  • Move tests/common/assertions.py to framework/assertions.py
  • Extract fixture utilities from conftest.py to framework/fixtures.py
  • Update all test files to import from framework
  • Update conftest.py to use framework.fixtures
  • Remove tests/common/ directory

@nitinahuja89 nitinahuja89 requested a review from a team as a code owner March 10, 2026 17:59
- Create framework/ package with assertions and fixtures modules
- Move tests/common/assertions.py to framework/assertions.py
- Extract fixture utilities from conftest.py to framework/fixtures.py
- Update all test files to import from framework
- Update conftest.py to use framework.fixtures
- Remove tests/common/ directory

Signed-off-by: Nitin Ahuja <nitinahuja.89@gmail.com>
@nitinahuja89 nitinahuja89 self-assigned this Mar 10, 2026
Copy link

@xgerman xgerman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@seoc01 seoc01 left a comment

Choose a reason for hiding this comment

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

Can you add a top level "documentdb_tests" folder, so that an other test suite using the framework an reference it with "documentdb_tests.framework" to avoid the generic import of just "framework"

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.

3 participants