jobs: minimal update test

pull/24/head
Houkime 2022-11-30 15:12:42 +00:00
parent 106a083ca2
commit 7acbba9960
1 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,15 @@ def test_add_reset(jobs_with_one_job):
assert jobs_with_one_job.get_jobs() == []
def test_minimal_update(jobs_with_one_job):
jobs = jobs_with_one_job
test_job = jobs_with_one_job.get_jobs()[0]
jobs.update(job=test_job, status=JobStatus.ERROR)
assert jobs.get_jobs() == [test_job]
def test_jobs(jobs_with_one_job):
jobs = jobs_with_one_job
test_job = jobs_with_one_job.get_jobs()[0]