Update the usage page to use new billing endpoints

* Create new billing_api_client for separation and remove
older methods in the service_api_client
This commit is contained in:
Imdad Ahad
2017-08-16 16:31:47 +01:00
parent fca663c183
commit 32242c4501
5 changed files with 36 additions and 18 deletions

View File

@@ -1490,7 +1490,7 @@ def mock_get_usage(mocker, service_one, fake_uuid):
]
return mocker.patch(
'app.service_api_client.get_service_usage', side_effect=_get_usage)
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
@pytest.fixture(scope='function')
@@ -1590,7 +1590,7 @@ def mock_get_billable_units(mocker):
]
return mocker.patch(
'app.service_api_client.get_billable_units', side_effect=_get_usage)
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
@pytest.fixture(scope='function')
@@ -1608,7 +1608,7 @@ def mock_get_future_usage(mocker, service_one, fake_uuid):
]
return mocker.patch(
'app.service_api_client.get_service_usage', side_effect=_get_usage)
'app.billing_api_client.get_service_usage', side_effect=_get_usage)
@pytest.fixture(scope='function')
@@ -1617,7 +1617,7 @@ def mock_get_future_billable_units(mocker):
return []
return mocker.patch(
'app.service_api_client.get_billable_units', side_effect=_get_usage)
'app.billing_api_client.get_billable_units', side_effect=_get_usage)
@pytest.fixture(scope='function')