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

GitAuto: Add unit tests to services/github/branch_manager.py #470

Closed
wants to merge 1 commit into from

Conversation

gitauto-for-dev[bot]
Copy link
Contributor

Resolves #468

What is the feature

Add comprehensive unit tests for the services/github/branch_manager.py module to ensure its reliability and maintainability.

Where / How to implement the feature

  • Create or update the test file tests/services/github/test_branch_manager.py to include unit tests covering all public methods and functionalities of the branch_manager.py module.
  • Utilize pytest as the testing framework to maintain consistency with existing tests and leverage its powerful features.
  • Mock external dependencies such as GitHub API calls using unittest.mock or similar libraries to isolate unit tests and ensure they run reliably without external factors.
  • Ensure high test coverage by including various scenarios, including edge cases and error handling, to comprehensively validate the behavior of the branch_manager.py module.
  • Follow best practices for writing clean, readable, and maintainable test code, adhering to the project's testing conventions and guidelines.

Anything the issuer needs to do

No action required.

Test these changes locally

git fetch origin
git checkout gitauto-wes/issue-468-20250108-201157
git pull origin gitauto-wes/issue-468-20250108-201157

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.

Add unit tests to services/github/branch_manager.py
1 participant