From 519176f903e7ef07487594e571b7b2c84ffd20e1 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 28 Feb 2020 13:40:07 +0000 Subject: [PATCH] Use new grid classes from GOV.UK frontend --- .../views/organisations/organisation/index.html | 16 ++++++++-------- .../views/organisations/test_organisation.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/templates/views/organisations/organisation/index.html b/app/templates/views/organisations/organisation/index.html index 039ee9270..6e07eb456 100644 --- a/app/templates/views/organisations/organisation/index.html +++ b/app/templates/views/organisations/organisation/index.html @@ -16,8 +16,8 @@ {{ pill(years, selected_year, big_number_args={'smallest': True}) }} -
-
+
+
{{ big_number( total_emails_sent, @@ -26,7 +26,7 @@ ) }}
-
+
{{ big_number( total_sms_cost, @@ -36,7 +36,7 @@ ) }}
-
+
{{ big_number( total_letter_cost, @@ -53,15 +53,15 @@
  • {{ service.service_name }}
  • -
    -
    +
    +
    {{ big_number( service.emails_sent, label='emails sent', smallest=True ) }}
    -
    +
    {% if service.sms_cost %} {{ big_number( service.sms_cost, @@ -77,7 +77,7 @@ ) }} {% endif %}
    -
    +
    {{ big_number( service.letter_cost, 'spent on letters', diff --git a/tests/app/main/views/organisations/test_organisation.py b/tests/app/main/views/organisations/test_organisation.py index 3c7c6e2cd..9a9458f93 100644 --- a/tests/app/main/views/organisations/test_organisation.py +++ b/tests/app/main/views/organisations/test_organisation.py @@ -415,7 +415,7 @@ def test_organisation_services_shows_live_services_and_usage( mock.assert_called_once_with(ORGANISATION_ID, 2019) services = page.select('.browse-list-item') - usage_rows = page.find_all("div", class_="column-one-third") + usage_rows = page.select("main .govuk-grid-column-one-third") assert len(services) == 2 # Totals