mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Add operator channel to broadcast settings route
Looks identical to the government channel in terms of the interface
This commit is contained in:
@@ -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
|
||||
):
|
||||
|
||||
@@ -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
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user