mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Merge pull request #2929 from alphagov/remove-unused-method
Remove unused method
This commit is contained in:
@@ -22,10 +22,6 @@ class BillingAPIClient(NotifyAdminAPIClient):
|
||||
)
|
||||
return result['free_sms_fragment_limit']
|
||||
|
||||
def get_free_sms_fragment_limit_for_all_years(self, service_id, year=None):
|
||||
return self.get(
|
||||
'/service/{0}/billing/free-sms-fragment-limit'.format(service_id))
|
||||
|
||||
def create_or_update_free_sms_fragment_limit(self, service_id, free_sms_fragment_limit, year=None):
|
||||
# year = None will update current and future year in the API
|
||||
data = {
|
||||
|
||||
@@ -2969,15 +2969,6 @@ def mock_create_or_update_free_sms_fragment_limit(mocker):
|
||||
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)
|
||||
|
||||
|
||||
@contextmanager
|
||||
def set_config(app, name, value):
|
||||
old_val = app.config.get(name)
|
||||
|
||||
Reference in New Issue
Block a user