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:
Pete Herlihy
2016-04-25 10:45:10 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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)