Make the date take up less space

This commit is contained in:
Chris Hill-Scott
2016-07-07 09:06:07 +01:00
parent 8b9704df0e
commit 60f79afb6b
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@
{% endcall %}
{% if item.expiry_date %}
{% call field(align='right') %}
Revoked {{ item.expiry_date|format_datetime }}
Revoked {{ item.expiry_date|format_datetime_short }}
{% endcall %}
{% else %}
{% call field(align='right', status='error') %}

View File

@@ -39,7 +39,7 @@ def test_should_show_api_keys_page(app_,
resp_data = response.get_data(as_text=True)
assert 'some key name' in resp_data
assert 'another key name' in resp_data
assert 'Revoked Thursday 01 January 1970 at 01:00' in resp_data
assert 'Revoked 1 January at 01:00' in resp_data
mock_get_api_keys.assert_called_once_with(service_id=fake_uuid)