integrations: Add GitHub discussion comment edit fixture.

This commit is contained in:
Satyam Bansal
2023-07-03 17:57:10 +05:30
committed by Tim Abbott
parent 9f01876de8
commit 62ec51f715
2 changed files with 242 additions and 0 deletions

View File

@@ -581,3 +581,7 @@ A temporary team so that I can get some webhook fixtures!
def test_discussion_comment_msg(self) -> None:
expected_message = "sbansal1999 [commented](https://github.com/sbansal1999/testing-gh/discussions/20#discussioncomment-6332416) on [discussion #20](https://github.com/sbansal1999/testing-gh/discussions/20):\n\n~~~ quote\nsome random comment\n~~~"
self.check_webhook("discussion_comment", TOPIC_DISCUSSION, expected_message)
def test_discussion_comment_edited_msg(self) -> None:
expected_message = "sbansal1999 [commented](https://github.com/sbansal1999/testing-gh/discussions/20#discussioncomment-6332416) on [discussion #20](https://github.com/sbansal1999/testing-gh/discussions/20):\n\n~~~ quote\nsome random comment edited\n~~~"
self.check_webhook("discussion_comment__edited", TOPIC_DISCUSSION, expected_message)