notify-552 remove option to use priority queue from UI

This commit is contained in:
Kenneth Kehl
2023-06-20 08:37:56 -07:00
parent f81401d167
commit aa0f15c1b2
2 changed files with 2 additions and 10 deletions

View File

@@ -1234,15 +1234,7 @@ class BaseTemplateForm(StripWhitespaceForm):
NoCommasInPlaceHolders()
]
)
process_type = GovukRadiosField(
"Use priority queue?",
choices=[
('priority', 'Yes'),
('normal', 'No'),
],
thing='yes or no',
default='normal'
)
process_type = HiddenField('normal')
class SMSTemplateForm(BaseTemplateForm):

View File

@@ -658,7 +658,7 @@ def test_should_show_page_template_with_priority_select_if_platform_admin(
assert page.select_one('input[name=name]')['value'] == "Two week reminder"
assert "Template <em>content</em> with & entity" in str(page.select_one('textarea'))
assert "Use priority queue?" in page.text
assert "Use priority queue?" not in page.text
mock_get_service_template.assert_called_with(service_one['id'], template_id, None)