mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05: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:
@@ -30,7 +30,14 @@ from tests.app.db import (
|
||||
from tests.conftest import set_config
|
||||
|
||||
|
||||
def test_send_broadcast_event_queues_up_for_active_providers(mocker, notify_api, sample_broadcast_service):
|
||||
@pytest.mark.parametrize('available_provider', [None, 'all'])
|
||||
def test_send_broadcast_event_queues_up_for_active_providers(
|
||||
mocker,
|
||||
notify_api,
|
||||
sample_broadcast_service,
|
||||
available_provider,
|
||||
):
|
||||
sample_broadcast_service.allowed_broadcast_provider = available_provider
|
||||
template = create_template(sample_broadcast_service, BROADCAST_TYPE)
|
||||
broadcast_message = create_broadcast_message(template, status=BroadcastStatusType.BROADCASTING)
|
||||
event = create_broadcast_event(broadcast_message)
|
||||
|
||||
Reference in New Issue
Block a user