Skip to content

Commit

Permalink
Add custom_body attribute to discord test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandonkelaar committed Jan 20, 2024
1 parent 13c74f8 commit 1346863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/handlers/test_destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def test_discord_notify_calls_requests_post():
"custom_subject": "Test custom subject",
"custom_body": "Test custom body",
}
alert.custom_body = alert.options["custom_body"]
alert.render_template = mock.Mock(return_value={"Rendered": "template"})
query = mock.Mock()
query.id = 1
Expand Down

0 comments on commit 1346863

Please sign in to comment.