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

Commits on Oct 10, 2024

  1. This step creates a new test file test_repo_client.py in the `tests…

    …/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.
    jennmueng committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    5579e1d View commit details
    Browse the repository at this point in the history