remove broadcast-related code, except migrations

This commit is contained in:
stvnrlly
2022-10-04 15:28:27 +00:00
parent 36ce2f7830
commit 57f4df8ed1
58 changed files with 14 additions and 6600 deletions

View File

@@ -19,7 +19,6 @@ from app.dao.templates_dao import (
dao_update_template,
)
from app.models import (
BROADCAST_TYPE,
EMAIL_TYPE,
LETTER_TYPE,
SMS_TYPE,
@@ -38,7 +37,6 @@ from tests.conftest import set_config_values
@pytest.mark.parametrize('template_type, subject', [
(BROADCAST_TYPE, None),
(SMS_TYPE, None),
(EMAIL_TYPE, 'subject'),
(LETTER_TYPE, 'subject'),
@@ -218,7 +216,6 @@ def test_should_raise_error_if_service_does_not_exist_on_create(client, sample_u
@pytest.mark.parametrize('permissions, template_type, subject, expected_error', [
([EMAIL_TYPE, SMS_TYPE, LETTER_TYPE], BROADCAST_TYPE, None, {'template_type': ['Creating broadcast message templates is not allowed']}), # noqa
([EMAIL_TYPE], SMS_TYPE, None, {'template_type': ['Creating text message templates is not allowed']}),
([SMS_TYPE], EMAIL_TYPE, 'subject', {'template_type': ['Creating email templates is not allowed']}),
([SMS_TYPE], LETTER_TYPE, 'subject', {'template_type': ['Creating letter templates is not allowed']}),
@@ -557,7 +554,6 @@ def test_should_get_return_all_fields_by_default(
)
assert json_response['data'][0].keys() == {
'archived',
'broadcast_data',
'content',
'created_at',
'created_by',
@@ -588,7 +584,6 @@ def test_should_get_return_all_fields_by_default(
(EMAIL_TYPE, None),
(SMS_TYPE, None),
(LETTER_TYPE, None),
(BROADCAST_TYPE, 'This is a test'),
))
def test_should_not_return_content_and_subject_if_requested(
admin_request,
@@ -753,7 +748,7 @@ def test_should_return_404_if_no_templates_for_service_with_id(client, sample_se
@pytest.mark.parametrize('template_type', (
SMS_TYPE, BROADCAST_TYPE,
SMS_TYPE,
))
def test_create_400_for_over_limit_content(
client,