Put environment URL in feedback tickets

So that:
- we know what environment a request has been sent from
This commit is contained in:
Chris Hill-Scott
2016-04-26 16:29:23 +01:00
parent 456291d630
commit a65466327c
2 changed files with 7 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ def test_post_feedback_with_no_name_email(app_, mocker):
data={
'department_id': ANY,
'subject': 'Notify feedback',
'message': '\n\nblah',
'message': 'Environment: http://localhost/\n\n\n\nblah',
'person_email': ANY},
headers=ANY)
@@ -69,7 +69,7 @@ def test_post_feedback_with_name_email(app_, mocker):
data={
'subject': 'Notify feedback',
'department_id': ANY,
'message': 'Steve Irwin\nrip@gmail.com\nblah',
'message': 'Environment: http://localhost/\n\nSteve Irwin\nrip@gmail.com\nblah',
'person_email': ANY},
headers=ANY)
@@ -94,7 +94,7 @@ def test_log_error_on_post(app_, mocker):
data={
'subject': 'Notify feedback',
'department_id': ANY,
'message': 'Steve Irwin\nrip@gmail.com\nblah',
'message': 'Environment: http://localhost/\n\nSteve Irwin\nrip@gmail.com\nblah',
'person_email': ANY},
headers=ANY)
mock_logger.assert_called_with(