Fix test to use a real status

This commit is contained in:
Rebecca Law
2016-05-18 12:05:26 +01:00
parent 5e27861515
commit 6c14d925c5
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
</p>
{% endcall %}
{{ text_field(item.status|capitalize|replace('-', ' ')) }}
{{ text_field(item.status|format_notification_status) }}
{% call field(align='right') %}
{{ item.updated_at|format_datetime_short }}

View File

@@ -159,7 +159,7 @@ def notification_json(service_id,
job=None,
template=None,
to='07123456789',
status='sent',
status='delivered',
sent_at=None,
created_at=None,
updated_at=None,

View File

@@ -47,7 +47,7 @@ def test_should_show_page_for_one_job(
content = response.get_data(as_text=True)
assert "{}: Your vehicle tax is about to expire".format(service_one['name']) in content
assert file_name in content
assert "Sent at 11:10" in content
assert "Delivered at 11:10" in content
def test_should_show_updates_for_one_job_as_json(