post-gray test updates

This commit is contained in:
stvnrlly
2022-12-02 10:30:37 -05:00
parent de30221ae3
commit a8b8d09fb7
7 changed files with 69 additions and 201 deletions

View File

@@ -527,9 +527,9 @@ def test_organisation_services_shows_live_services_and_usage_with_count_of_1(
@freeze_time("2020-02-20 20:20")
@pytest.mark.parametrize('financial_year, expected_selected', (
(2017, '2017 to 2018 financial year'),
(2018, '2018 to 2019 financial year'),
(2019, '2019 to 2020 financial year'),
(2017, '2017 to 2018 fiscal year'),
(2018, '2018 to 2019 fiscal year'),
(2019, '2019 to 2020 fiscal year'),
))
def test_organisation_services_filters_by_financial_year(
client_request,
@@ -551,9 +551,9 @@ def test_organisation_services_filters_by_financial_year(
)
mock.assert_called_once_with(ORGANISATION_ID, financial_year)
assert normalize_spaces(page.select_one('.pill').text) == (
'2019 to 2020 financial year '
'2018 to 2019 financial year '
'2017 to 2018 financial year'
'2019 to 2020 fiscal year '
'2018 to 2019 fiscal year '
'2017 to 2018 fiscal year'
)
assert normalize_spaces(page.select_one('.pill-item--selected').text) == (
expected_selected