mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
Rename the method for usage and update the tests.
This commit is contained in:
@@ -71,7 +71,7 @@ def test_excluded_navigation_items_are_properly_defined(navigation_instance):
|
||||
])
|
||||
def test_all_endpoints_are_covered(navigation_instance):
|
||||
for endpoint in all_endpoints:
|
||||
if not endpoint == 'main.ft_usage':
|
||||
if not endpoint == 'main.monthly_billing_usage':
|
||||
assert endpoint in (
|
||||
navigation_instance.endpoints_with_navigation +
|
||||
navigation_instance.endpoints_without_navigation
|
||||
|
||||
@@ -2194,7 +2194,7 @@ def mock_get_usage(mocker, service_one, fake_uuid):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_service_usage_ft', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2300,7 +2300,7 @@ def mock_get_billable_units(mocker):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_billable_units_ft', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2318,7 +2318,7 @@ def mock_get_future_usage(mocker, service_one, fake_uuid):
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_service_usage_ft', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
@@ -2327,7 +2327,7 @@ def mock_get_future_billable_units(mocker):
|
||||
return []
|
||||
|
||||
return mocker.patch(
|
||||
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
|
||||
'app.billing_api_client.get_billable_units_ft', side_effect=_get_usage)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
|
||||
Reference in New Issue
Block a user