Add created_by_id to jobs table.

The user logged in will be the user marked as creating the job.
The admin code already sends the created_by user when creating a job.
This commit is contained in:
Rebecca Law
2016-04-26 16:15:34 +01:00
parent b282f5015b
commit 94aab20317
5 changed files with 44 additions and 4 deletions

View File

@@ -97,7 +97,8 @@ def test_create_job(notify_api, sample_template, mocker, fake_uuid):
'service': str(sample_template.service.id),
'template': str(sample_template.id),
'original_file_name': 'thisisatest.csv',
'notification_count': 1
'notification_count': 1,
'created_by': str(sample_template.created_by.id)
}
path = '/service/{}/job'.format(sample_template.service.id)
auth_header = create_authorization_header(