Update provider splits

also fix tests so they're independent of future config changes
This commit is contained in:
Leo Hemsted
2020-04-06 14:33:49 +01:00
parent e386d2ac38
commit 9673619519
2 changed files with 9 additions and 2 deletions

View File

@@ -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):