Starting to implement scheduling

This commit is contained in:
Martyn Inglis
2016-08-24 14:04:52 +01:00
parent 5adecda41e
commit 805da23d6b
3 changed files with 66 additions and 54 deletions

View File

@@ -123,10 +123,12 @@ def test_create_job(notify_api, sample_template, mocker, fake_uuid):
path = '/service/{}/job'.format(sample_template.service.id)
auth_header = create_authorization_header(service_id=sample_template.service.id)
headers = [('Content-Type', 'application/json'), auth_header]
response = client.post(
path,
data=json.dumps(data),
headers=headers)
print(json.loads(response.get_data(as_text=True)))
assert response.status_code == 201
app.celery.tasks.process_job.apply_async.assert_called_once_with(