mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-04 21:18:26 -04:00
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:
@@ -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
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user