From 96736195196dd6620b94ed4581990489875d0136 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 6 Apr 2020 14:33:49 +0100 Subject: [PATCH] Update provider splits also fix tests so they're independent of future config changes --- app/config.py | 4 ++-- tests/app/dao/test_provider_details_dao.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/config.py b/app/config.py index fab5faf24..7dba73014 100644 --- a/app/config.py +++ b/app/config.py @@ -140,8 +140,8 @@ class Config(object): # these should always add up to 100% SMS_PROVIDER_RESTING_POINTS = { - 'mmg': 60, - 'firetext': 40 + 'mmg': 70, + 'firetext': 30 } NOTIFY_SERVICE_ID = 'd6aa2c68-a2d9-4437-ab19-3ae8eb202553' diff --git a/tests/app/dao/test_provider_details_dao.py b/tests/app/dao/test_provider_details_dao.py index a764a3f48..2d42975e2 100644 --- a/tests/app/dao/test_provider_details_dao.py +++ b/tests/app/dao/test_provider_details_dao.py @@ -22,6 +22,13 @@ from tests.app.db import ( create_service, create_template, ) +from tests.conftest import set_config + + +@pytest.fixture(autouse=True) +def set_provider_resting_points(notify_api): + with set_config(notify_api, 'SMS_PROVIDER_RESTING_POINTS', {'mmg': 60, 'firetext': 40}): + yield def set_primary_sms_provider(identifier):