Add operator channel to broadcast settings route

Looks identical to the government channel in terms of the interface
This commit is contained in:
David McDonald
2021-06-09 13:49:06 +01:00
parent d18bf2c48a
commit be035664c4
3 changed files with 5 additions and 3 deletions

View File

@@ -221,7 +221,7 @@ def test_send_broadcast_provider_message_sends_data_correctly(
['o2', 'O2'],
['vodafone', 'Vodafone'],
])
@pytest.mark.parametrize('channel', ['test', 'severe', 'government'])
@pytest.mark.parametrize('channel', ['operator', 'test', 'severe', 'government'])
def test_send_broadcast_provider_message_uses_channel_set_on_broadcast_service(
notify_db, mocker, sample_broadcast_service, provider, provider_capitalised, channel
):

View File

@@ -290,9 +290,11 @@ def test_get_service_by_id(admin_request, sample_service):
@pytest.mark.parametrize('broadcast_channel,allowed_broadcast_provider', (
('operator', 'all'),
('test', 'all'),
('severe', 'all'),
('government', 'all'),
('operator', 'o2'),
('test', 'ee'),
('severe', 'three'),
('government', 'vodafone'),
@@ -3711,7 +3713,7 @@ def test_get_returned_letter(admin_request, sample_letter_template):
assert response[4]['uploaded_letter_file_name'] == 'filename.pdf'
@pytest.mark.parametrize('channel', ["test", "severe", "government"])
@pytest.mark.parametrize('channel', ["operator", "test", "severe", "government"])
def test_set_as_broadcast_service_sets_broadcast_channel(
admin_request, sample_service, broadcast_organisation, channel
):