Change the drop down to read Use priority queue? yes|no

This commit is contained in:
Rebecca Law
2017-01-18 16:03:30 +00:00
parent 3dfb3806d2
commit babafd8dc9
2 changed files with 4 additions and 4 deletions

View File

@@ -270,8 +270,8 @@ class SMSTemplateForm(Form):
NoCommasInPlaceHolders()
]
)
process_type = SelectField(u'Select priority or normal', choices=[('normal', 'normal'),
('priority', 'priority')],
process_type = SelectField(u'Use priority queue?', choices=[('normal', 'no'),
('priority', 'yes')],
default='normal')

View File

@@ -36,7 +36,7 @@ def test_should_show_page_for_one_template(
assert response.status_code == 200
assert "Two week reminder" in response.get_data(as_text=True)
assert "Your vehicle tax is about to expire" in response.get_data(as_text=True)
assert "Select priority or normal" not in response.get_data(as_text=True)
assert "Use priority queue?" not in response.get_data(as_text=True)
mock_get_service_template.assert_called_with(
service_id, template_id)
@@ -64,7 +64,7 @@ def test_should_show_page_template_with_priority_select_if_platform_admin(
assert response.status_code == 200
assert "Two week reminder" in response.get_data(as_text=True)
assert "Your vehicle tax is about to expire" in response.get_data(as_text=True)
assert "Select priority or normal" in response.get_data(as_text=True)
assert "Use priority queue?" in response.get_data(as_text=True)
mock_get_service_template.assert_called_with(
service_id, template_id)