mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04: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():
|
if form.validate_on_submit():
|
||||||
data = {
|
data = {
|
||||||
'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'),
|
'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',
|
'subject': 'Notify feedback',
|
||||||
'message': '{}\n{}\n{}'.format(
|
'message': '{}\n{}\n{}'.format(
|
||||||
form.name.data,
|
form.name.data,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ def test_post_feedback_with_no_name_email(app_, mocker):
|
|||||||
mock_post.assert_called_with(
|
mock_post.assert_called_with(
|
||||||
ANY,
|
ANY,
|
||||||
data={
|
data={
|
||||||
'agent_team_id': ANY,
|
'department_id': ANY,
|
||||||
'subject': 'Notify feedback',
|
'subject': 'Notify feedback',
|
||||||
'message': '\n\nblah',
|
'message': '\n\nblah',
|
||||||
'person_email': ANY},
|
'person_email': ANY},
|
||||||
@@ -68,7 +68,7 @@ def test_post_feedback_with_name_email(app_, mocker):
|
|||||||
ANY,
|
ANY,
|
||||||
data={
|
data={
|
||||||
'subject': 'Notify feedback',
|
'subject': 'Notify feedback',
|
||||||
'agent_team_id': ANY,
|
'department_id': ANY,
|
||||||
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
||||||
'person_email': ANY},
|
'person_email': ANY},
|
||||||
headers=ANY)
|
headers=ANY)
|
||||||
@@ -93,7 +93,7 @@ def test_log_error_on_post(app_, mocker):
|
|||||||
ANY,
|
ANY,
|
||||||
data={
|
data={
|
||||||
'subject': 'Notify feedback',
|
'subject': 'Notify feedback',
|
||||||
'agent_team_id': ANY,
|
'department_id': ANY,
|
||||||
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
'message': 'Steve Irwin\nrip@gmail.com\nblah',
|
||||||
'person_email': ANY},
|
'person_email': ANY},
|
||||||
headers=ANY)
|
headers=ANY)
|
||||||
|
|||||||
Reference in New Issue
Block a user