Make service_broadcast_settings.provider non-nullable

We set all existing null values to "all", then make the column
non-nullable. Admin is already passing through the value of "all".
This commit is contained in:
Katie Smith
2021-05-10 15:41:34 +01:00
parent 96cb30d640
commit 4624328c36
4 changed files with 41 additions and 28 deletions

View File

@@ -30,14 +30,7 @@ from tests.app.db import (
from tests.conftest import set_config
@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
def test_send_broadcast_event_queues_up_for_active_providers(mocker, notify_api, sample_broadcast_service):
template = create_template(sample_broadcast_service, BROADCAST_TYPE)
broadcast_message = create_broadcast_message(template, status=BroadcastStatusType.BROADCASTING)
event = create_broadcast_event(broadcast_message)