Hide status for individual letters

The status for each letter in a job will be the same for every single
letter (at least until we start dealing with returns).

It’s redundant to show this information over and over again. This commit
removes it.
This commit is contained in:
Chris Hill-Scott
2017-07-13 07:10:45 +01:00
parent a282850a0c
commit 202c9aea62
3 changed files with 62 additions and 19 deletions

View File

@@ -158,6 +158,43 @@ def test_should_show_job_in_progress(
assert page.find('p', {'class': 'hint'}).text.strip() == 'Report is 50% complete…'
@freeze_time("2016-01-01 11:09:00.061258")
def test_should_show_letter_job(
client_request,
mock_get_service_letter_template,
mock_get_job,
mock_get_notifications,
fake_uuid,
):
page = client_request.get(
'main.view_job',
service_id=SERVICE_ONE_ID,
job_id=fake_uuid,
)
assert normalize_spaces(page.h1.text) == 'thisisatest.csv'
assert normalize_spaces(page.select('tbody tr')[0].text) == (
'07123456789 template content'
)
mock_get_notifications.assert_called_with(
SERVICE_ONE_ID,
fake_uuid,
status=[
'created',
'pending',
'sending',
'delivered',
'sent',
'failed',
'temporary-failure',
'permanent-failure',
'technical-failure',
],
)
@freeze_time("2016-01-01T00:00:00.061258")
def test_should_show_scheduled_job(
logged_in_client,