Merge pull request #2929 from alphagov/remove-unused-method

Remove unused method
This commit is contained in:
Chris Hill-Scott
2019-04-24 13:23:23 +01:00
committed by GitHub
2 changed files with 0 additions and 13 deletions

View File

@@ -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 = {

View File

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