mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Merge pull request #491 from alphagov/deskpro-department
Update the department id so tickets for Deskpro hit the right bucket
This commit is contained in:
@@ -50,7 +50,7 @@ def feedback():
|
||||
if form.validate_on_submit():
|
||||
data = {
|
||||
'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'),
|
||||
'agent_team_id': current_app.config.get('DESKPRO_TEAM_ID'),
|
||||
'department_id': current_app.config.get('DESKPRO_TEAM_ID'),
|
||||
'subject': 'Notify feedback',
|
||||
'message': '{}\n{}\n{}'.format(
|
||||
form.name.data,
|
||||
|
||||
@@ -47,7 +47,7 @@ def test_post_feedback_with_no_name_email(app_, mocker):
|
||||
mock_post.assert_called_with(
|
||||
ANY,
|
||||
data={
|
||||
'agent_team_id': ANY,
|
||||
'department_id': ANY,
|
||||
'subject': 'Notify feedback',
|
||||
'message': '\n\nblah',
|
||||
'person_email': ANY},
|
||||
@@ -68,7 +68,7 @@ def test_post_feedback_with_name_email(app_, mocker):
|
||||
ANY,
|
||||
data={
|
||||
'subject': 'Notify feedback',
|
||||
'agent_team_id': ANY,
|
||||
'department_id': ANY,
|
||||
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
||||
'person_email': ANY},
|
||||
headers=ANY)
|
||||
@@ -93,7 +93,7 @@ def test_log_error_on_post(app_, mocker):
|
||||
ANY,
|
||||
data={
|
||||
'subject': 'Notify feedback',
|
||||
'agent_team_id': ANY,
|
||||
'department_id': ANY,
|
||||
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
||||
'person_email': ANY},
|
||||
headers=ANY)
|
||||
|
||||
Reference in New Issue
Block a user