mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
add logic to change future free_sms_fragment_limit items when service setting changed
This commit is contained in:
@@ -2341,3 +2341,12 @@ def mock_create_or_update_free_sms_fragment_limit(mocker):
|
||||
sample_limit = 250000
|
||||
return mocker.patch('app.billing_api_client.create_or_update_free_sms_fragment_limit_for_year',
|
||||
return_value=sample_limit)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_free_sms_fragment_limit_for_all_years(mocker):
|
||||
sample_limit = [{'financial_year_start': 2016, 'free_sms_fragment_limit': 250000},
|
||||
{'financial_year_start': 2017, 'free_sms_fragment_limit': 500000}]
|
||||
|
||||
return mocker.patch('app.billing_api_client.get_free_sms_fragment_limit_for_all_years',
|
||||
return_value=sample_limit)
|
||||
|
||||
Reference in New Issue
Block a user