As job update is a PUT then all non nullable fields

need to be sent with update.

Also bug in not committing update fixed.
This commit is contained in:
Adam Shimali
2016-02-05 13:07:02 +00:00
parent bd88cf1e93
commit e024db6858
3 changed files with 18 additions and 12 deletions

View File

@@ -119,7 +119,7 @@ def test_create_job(notify_api, notify_db, notify_db_session, sample_template):
assert len(messages) == 1
expected_message = json.loads(messages[0].body)
assert expected_message['job_id'] == str(job_id)
assert expected_message['id'] == str(job_id)
assert expected_message['service_id'] == str(service_id)
assert expected_message['template_id'] == template_id
assert expected_message['bucket_name'] == bucket_name