Fixed bug for subject not updating when changed on the edit template page.

This commit is contained in:
Nicholas Staples
2016-04-14 14:08:35 +01:00
parent b157da24cb
commit a6a42d6f26
3 changed files with 50 additions and 6 deletions

View File

@@ -205,9 +205,9 @@ def mock_create_service_template(mocker, fake_uuid):
@pytest.fixture(scope='function')
def mock_update_service_template(mocker):
def _update(id_, name, type_, content, service):
def _update(id_, name, type_, content, service, subject=None):
template = template_json(
service, id_, name, type_, content)
service, id_, name, type_, content, subject)
return {'data': template}
return mocker.patch(