Slightly extend background jobs api

This commit is contained in:
Matthias
2024-05-12 09:12:53 +02:00
parent 0279cf5fed
commit e4881580fd
3 changed files with 25 additions and 1 deletions

View File

@@ -1964,6 +1964,15 @@ def test_api_pairlists_evaluate(botclient, tmp_path, mocker):
assert_response(rc, 404)
assert rc.json()['detail'] == 'Job not found.'
# Background list
rc = client_get(client, f"{BASE_URI}/background")
assert_response(rc)
response = rc.json()
assert isinstance(response, list)
assert len(response) == 1
assert response[0]['job_id'] == job_id
# Get individual job
rc = client_get(client, f"{BASE_URI}/background/{job_id}")
assert_response(rc)
response = rc.json()