Conversation
|
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.



This pull request refactors the test suite to centralize and standardize test helpers, resulting in cleaner and more maintainable test files. The main change is the introduction of a new
tests/helpers.pymodule containing common test setup functions. All test files are updated to use these helpers, reducing code duplication and improving consistency. Additionally, usage ofContextOptionsis now preferred for context configuration, making test setups more explicit and flexible.Key changes include:
Test helper centralization and import updates:
tests/helpers.pymodule with reusable helper functions for setting up test contexts, mocking auth and API responses, and configuring snapshots. Test files now import these helpers instead of defining their own.tests/helpers.pyfor consistency and maintainability. [1] [2] [3] [4]Test setup improvements:
given_contexthelper, passingoptions=ContextOptions(...)where appropriate. This makes context configuration more explicit and supports advanced options for snapshot location, environment, and other settings. [1] [2] [3] [4] [5] [6] [7] [8] Ffefaa67L10R12, [9] [10] [11] [12] [13] [14] [15] [16]Dependency update:
pytest-covdevelopment dependency version from7.0.0to7.1.0inPipfile.These changes improve code reuse, test clarity, and maintainability across the test suite.