Only test the items of the template that can change on an update request.

Return 200 if no change is made.
This commit is contained in:
Rebecca Law
2016-06-01 12:19:59 +01:00
parent 05e72b07ae
commit 047a7d5488
2 changed files with 18 additions and 9 deletions

View File

@@ -440,6 +440,6 @@ def test_update_does_not_create_new_version_when_there_is_no_change(notify_api,
resp = client.post('/service/{}/template/{}'.format(sample_template.service_id, sample_template.id),
data=json.dumps(data),
headers=[('Content-Type', 'application/json'), auth_header])
assert resp.status_code == 304
assert resp.status_code == 200
template = dao_get_template_by_id(sample_template.id)
assert template.version == 1