jobs: minimal update test

This commit is contained in:
Houkime 2022-11-30 15:12:42 +00:00
parent 106a083ca2
commit 7acbba9960

View file

@ -11,6 +11,15 @@ def test_add_reset(jobs_with_one_job):
assert jobs_with_one_job.get_jobs() == [] 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): def test_jobs(jobs_with_one_job):
jobs = jobs_with_one_job jobs = jobs_with_one_job
test_job = jobs_with_one_job.get_jobs()[0] test_job = jobs_with_one_job.get_jobs()[0]