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:
Pea Tyczynska
2018-12-10 16:11:31 +00:00
parent 6938600ab8
commit 5ed7564066
2 changed files with 0 additions and 25 deletions

View File

@@ -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,