make dashboard jobs list hit job api twice

once for scheduled jobs, once for past jobs

this ensures that if you have lots of scheduled jobs it can still return your last 50 jobs
This commit is contained in:
Leo Hemsted
2016-10-05 09:59:46 +01:00
parent be97edce7f
commit 441a2717f2
3 changed files with 19 additions and 16 deletions

View File

@@ -901,7 +901,7 @@ def mock_get_job_in_progress(mocker, api_user_active):
@pytest.fixture(scope='function')
def mock_get_jobs(mocker, api_user_active):
def _get_jobs(service_id, limit_days=None):
def _get_jobs(service_id, limit_days=None, statuses=None):
return {"data": [
job_json(
service_id,