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

Add Tests for PR#1266 #1270

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jennmueng
Copy link
Member

This PR adds tests for #1266

Commits:

  • Add unit tests for RepoClient and RepoClientType changes

…/seer/automation/codebase/` directory. The file contains several unit tests that cover the changes made to the `RepoClient` class and related functions:

1. `test_repo_client_type_enum`: Verifies that the new `RepoClientType` enum has the correct values.
2. `test_repo_client_from_repo_definition`: Tests the `from_repo_definition` method of `RepoClient` with different `RepoClientType` values.
3. `test_repo_client_init`: Tests the initialization of the `RepoClient` class.
4. `test_get_read_app_credentials`: Tests the `get_read_app_credentials` function.
5. `test_get_write_app_credentials`: Tests the `get_write_app_credentials` function.
6. `test_get_codecov_unit_test_app_credentials`: Tests the new `get_codecov_unit_test_app_credentials` function.

These tests use pytest fixtures and mocking to isolate the components being tested and verify their behavior with the new `RepoClientType` enum and associated changes.
Base automatically changed from jenn/codecov-repo-github to main October 10, 2024 22:55
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.

1 participant