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#388 #389

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

Conversation

sentry-autofix[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 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.

0 participants