Sum up usage for an whole organisation

We invoice on a per organisation basis, so it’s useful to know the per
organisation figures without needing to do any spreadsheet-fu.
This commit is contained in:
Chris Hill-Scott
2020-02-27 15:21:08 +00:00
parent 4d89d36847
commit bd9e127e57
4 changed files with 48 additions and 12 deletions

View File

@@ -150,7 +150,7 @@ def test_a_page_should_nave_selected_org_navigation_item(
mocker
):
mocker.patch(
'app.organisations_client.get_services_and_usage', return_value=[]
'app.organisations_client.get_services_and_usage', return_value={'services': {}}
)
page = client_request.get(endpoint, org_id=ORGANISATION_ID)
selected_nav_items = page.select('.navigation a.selected')