Allow "government" in broadcast_channel schema

This will allow admin to pass through a value of "government" for the
broadcast_channel. We don't have any logic around the value of service.broadcast_channel,
so no updates are needed to the tasks etc.
This commit is contained in:
Katie Smith
2021-05-11 16:52:07 +01:00
parent 7eed63eb80
commit 829b646931
3 changed files with 6 additions and 4 deletions

View File

@@ -292,8 +292,10 @@ def test_get_service_by_id(admin_request, sample_service):
@pytest.mark.parametrize('broadcast_channel,allowed_broadcast_provider', (
('test', 'all'),
('severe', 'all'),
('government', 'all'),
('test', 'ee'),
('severe', 'three'),
('government', 'vodafone'),
))
def test_get_service_by_id_for_broadcast_service_returns_broadcast_keys(
notify_db, admin_request, sample_broadcast_service, broadcast_channel, allowed_broadcast_provider
@@ -3709,7 +3711,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"])
@pytest.mark.parametrize('channel', ["test", "severe", "government"])
def test_set_as_broadcast_service_sets_broadcast_channel(
admin_request, sample_service, broadcast_organisation, channel
):
@@ -3759,7 +3761,7 @@ def test_set_as_broadcast_service_updates_channel_for_broadcast_service(
assert records[0].channel == "test"
@pytest.mark.parametrize('channel', ["government", "extreme", "exercise", "random", ""])
@pytest.mark.parametrize('channel', ["extreme", "exercise", "random", ""])
def test_set_as_broadcast_service_rejects_unknown_channels(
admin_request, sample_service, broadcast_organisation, channel
):