mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-17 03:40:04 -04:00
Remove ft from method name and url, it doesn't add any meaning.
This commit is contained in:
@@ -876,7 +876,7 @@ def test_usage_page_displays_letters_ordered_by_postage(
|
||||
{'month': 'April', 'notification_type': 'letter', 'rate': 0.3, 'billing_units': 3, 'postage': 'second'},
|
||||
{'month': 'April', 'notification_type': 'letter', 'rate': 0.5, 'billing_units': 1, 'postage': 'first'},
|
||||
]
|
||||
mocker.patch('app.billing_api_client.get_billable_units_ft', return_value=billable_units_resp)
|
||||
mocker.patch('app.billing_api_client.get_billable_units', return_value=billable_units_resp)
|
||||
service_one['permissions'].append('letter')
|
||||
page = client_request.get(
|
||||
'main.usage',
|
||||
|
||||
@@ -2414,7 +2414,7 @@ def mock_get_usage(mocker, service_one, fake_uuid):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_service_usage_ft', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2508,7 +2508,7 @@ def mock_get_billable_units(mocker):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_billable_units_ft', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2526,7 +2526,7 @@ def mock_get_future_usage(mocker, service_one, fake_uuid):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_service_usage_ft', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2535,7 +2535,7 @@ def mock_get_future_billable_units(mocker):
|
||||
return []
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_billable_units_ft', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
|
||||
Reference in New Issue
Block a user