change operations to kebab-case

so that they better align with the front-end, where they'll be used in
data attributes. Also, making the kebab case is nice because it doesn't
give favouritism to either JS or python naming conventions
This commit is contained in:
Leo Hemsted
2018-12-04 14:47:05 +00:00
parent e27540243d
commit 97f663f99e
6 changed files with 46 additions and 46 deletions

View File

@@ -616,7 +616,7 @@ def test_dont_show_preview_letter_templates_for_bad_filetype(
'template_type': 'copy-existing'
}),
('main.choose_template', {
'operation': 'add_template',
'operation': 'add-new-template',
'add_template_by_template_type': 'copy-existing'
}),
))
@@ -791,7 +791,7 @@ def test_cant_copy_template_from_non_member_service(
(
'main.choose_template',
{
'operation': 'add_template',
'operation': 'add-new-template',
'add_template_by_template_type': 'email',
},
"Sending emails has been disabled for your service."
@@ -799,7 +799,7 @@ def test_cant_copy_template_from_non_member_service(
(
'main.choose_template',
{
'operation': 'add_template',
'operation': 'add-new-template',
'add_template_by_template_type': 'sms',
},
"Sending text messages has been disabled for your service."