Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Add Tests for PR#388 #389

Draft
wants to merge 1 commit into
base: adjust-message-copy
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

This PR adds tests for #388

Commits:

  • Add unit test for GitHub comment request body with Generate Tests action

…unit/torngit/` directory. The file contains a test class `TestGithubComments` with a single test method `test_build_comment_request_body_with_generate_tests_action`.

The test method does the following:
1. Sets up the necessary input parameters for the `build_comment_request_body` function.
2. Calls the `build_comment_request_body` function with these parameters.
3. Asserts that the returned result contains the correct "Generate Tests" action with the expected properties.
4. Verifies that the comment body is constructed correctly with the header, content, and footer.

This test ensures that the changes made to the `build_comment_request_body` function in `github.py` are working as expected, specifically the addition of the "Generate Tests" action.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants