From 7acbba996057220e94bad77254af88d1e90a9e82 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 30 Nov 2022 15:12:42 +0000 Subject: [PATCH] jobs: minimal update test --- tests/test_jobs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_jobs.py b/tests/test_jobs.py index 63b06d1..c7eb3d6 100644 --- a/tests/test_jobs.py +++ b/tests/test_jobs.py @@ -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]