Use per-service data retention period to display notifications page

Uses the configured service data retention page to display retention
period length, notification counts and fetch notifications from the
API on the notifications page.
This commit is contained in:
Alexey Bezhan
2018-08-13 17:07:49 +01:00
parent 52d48ad679
commit e3a0adc293
4 changed files with 17 additions and 6 deletions

View File

@@ -145,7 +145,7 @@ def test_can_show_notifications(
**extra_args
))
json_content = json.loads(json_response.get_data(as_text=True))
assert json_content.keys() == {'counts', 'notifications'}
assert json_content.keys() == {'counts', 'notifications', 'service_data_retention_days'}
@pytest.mark.parametrize('user, query_parameters, expected_download_link', [