-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reply snow ticket: add user email to request payload
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ def test_reply_ticket_calls_tickets_reply_when_template_is_not_set(workflow_app) | |
assert expected_result == result | ||
assert ( | ||
request_mocker.request_history[0]._request.body | ||
== '{"ticket_id": "1", "reply_message": "reply reason"}' | ||
== '{"ticket_id": "1", "user_email": "[email protected]", "reply_message": "reply reason"}' | ||
) | ||
|
||
|
||
|
@@ -68,7 +68,7 @@ def test_reply_ticket_calls_tickets_reply_when_template_is_set(workflow_app): | |
assert expected_result == result | ||
assert ( | ||
request_mocker.request_history[0]._request.body | ||
== '{"template_context": {"reason": "", "record_url": "", "user_name": "[email protected]", "title": "Partial Symmetries of Weak Interactions"}, "ticket_id": "1", "template": "test"}' | ||
== '{"user_email": "[email protected]", "template_context": {"reason": "", "record_url": "", "user_name": "[email protected]", "title": "Partial Symmetries of Weak Interactions"}, "ticket_id": "1", "template": "test"}' | ||
) | ||
|
||
|
||
|