mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-11 09:27:56 -04:00
Allow service.allowed_broadcast_provider to be "all"
We want to replace the value `None` for service.allowed_broadcast_provider with the value of "all". As a first step, we need to allow both values. Once notifications-admin has been changed to pass through "all" and all the data in the database has been updated, we can update the code to stop supporting both values.
This commit is contained in:
@@ -290,6 +290,8 @@ def test_get_service_by_id(admin_request, sample_service):
|
||||
|
||||
|
||||
@pytest.mark.parametrize('broadcast_channel,allowed_broadcast_provider', (
|
||||
('test', 'all'),
|
||||
('severe', 'all'),
|
||||
('test', None),
|
||||
('severe', None),
|
||||
('test', 'ee'),
|
||||
@@ -4018,7 +4020,7 @@ def test_set_as_broadcast_service_rejects_if_no_service_mode(
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('provider', [None, "three", "ee", "vodafone", "o2"])
|
||||
@pytest.mark.parametrize('provider', [None, "all", "three", "ee", "vodafone", "o2"])
|
||||
def test_set_as_broadcast_service_sets_mobile_provider_restriction(
|
||||
admin_request, sample_service, broadcast_organisation, provider
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user