Add a load only and dump only for the created_by attribute of the JobSchema

This commit is contained in:
Rebecca Law
2016-05-11 12:03:25 +01:00
parent b8017dcf02
commit aff0abb78c
2 changed files with 5 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ def test_get_job_by_id(notify_api, sample_job):
assert response.status_code == 200
resp_json = json.loads(response.get_data(as_text=True))
assert resp_json['data']['id'] == job_id
assert resp_json['data']['created_by']['name'] == 'Test User'
def test_create_job(notify_api, sample_template, mocker, fake_uuid):