Fix all jobs being shown on the dashboard

The dashboard was showing the 50 most recent jobs, not the 50 most
recent in the last 7 days.
This commit is contained in:
Chris Hill-Scott
2016-10-12 11:31:59 +01:00
parent daa848f4c5
commit b48874dbad
2 changed files with 2 additions and 1 deletions

View File

@@ -223,6 +223,7 @@ def test_should_show_recent_jobs_on_dashboard(
second_call = mock_get_jobs.call_args_list[1]
assert second_call[0] == (SERVICE_ONE_ID,)
assert second_call[1]['limit_days'] == 7
assert 'scheduled' not in second_call[1]['statuses']
assert response.status_code == 200