mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Remove unused config variables
We don't use FUNCTIONAL_TEST_PROVIDER_SERVICE_ID or UNCTIONAL_TEST_PROVIDER_SMS_TEMPLATE_ID anymore so we can safely delete them from config and tests.
This commit is contained in:
@@ -72,7 +72,6 @@ from tests.app.conftest import (
|
||||
sample_template as create_sample_template,
|
||||
datetime_in_past
|
||||
)
|
||||
from tests.conftest import set_config_values
|
||||
|
||||
|
||||
def _create_slow_delivery_notification(template, provider='mmg'):
|
||||
@@ -401,25 +400,6 @@ def test_send_total_sent_notifications_to_performance_platform_calls_with_correc
|
||||
])
|
||||
|
||||
|
||||
def test_switch_providers_on_slow_delivery_runs_if_config_set(
|
||||
notify_api,
|
||||
mocker,
|
||||
prepare_current_provider
|
||||
):
|
||||
get_notifications_mock = mocker.patch(
|
||||
'app.celery.scheduled_tasks.is_delivery_slow_for_provider',
|
||||
return_value=[]
|
||||
)
|
||||
|
||||
with set_config_values(notify_api, {
|
||||
'FUNCTIONAL_TEST_PROVIDER_SERVICE_ID': '7954469d-8c6d-43dc-b8f7-86be2d69f5f3',
|
||||
'FUNCTIONAL_TEST_PROVIDER_SMS_TEMPLATE_ID': '331a63e6-f1aa-4588-ad3f-96c268788ae7'
|
||||
}):
|
||||
switch_current_sms_provider_on_slow_delivery()
|
||||
|
||||
assert get_notifications_mock.called is True
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Not switching it on yet")
|
||||
def test_switch_providers_on_slow_delivery_switches_once_then_does_not_switch_if_already_switched(
|
||||
notify_api,
|
||||
|
||||
Reference in New Issue
Block a user