Test mock_update_service_template called with right args

This commit is contained in:
Pea Tyczynska
2018-12-21 15:51:24 +00:00
parent bc1e0b7167
commit 50935e79ca
2 changed files with 43 additions and 3 deletions

View File

@@ -565,7 +565,6 @@ def edit_service_template(service_id, template_id):
template = service_api_client.get_service_template(service_id, template_id)['data']
template['template_content'] = template['content']
form = form_objects[template['template_type']](**template)
if form.validate_on_submit():
if form.process_type.data != template['process_type']:
abort_403_if_not_admin_user()