mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-04 07:06:39 +00:00
Jobs: test get_job() return values
Coverage is now at 99%
This commit is contained in:
parent
063dfafc19
commit
d47368cbe9
|
@ -39,6 +39,16 @@ def test_remove_update_nonexistent(jobs_with_one_job):
|
|||
assert result == test_job # even though we might consider changing this behavior
|
||||
|
||||
|
||||
def test_remove_get_nonexistent(jobs_with_one_job):
|
||||
test_job = jobs_with_one_job.get_jobs()[0]
|
||||
uid_str = str(test_job.uid)
|
||||
assert jobs_with_one_job.get_job(uid_str) == test_job
|
||||
|
||||
jobs_with_one_job.remove(test_job)
|
||||
|
||||
assert jobs_with_one_job.get_job(uid_str) is None
|
||||
|
||||
|
||||
def test_jobs(jobs_with_one_job):
|
||||
jobs = jobs_with_one_job
|
||||
test_job = jobs_with_one_job.get_jobs()[0]
|
||||
|
|
Loading…
Reference in a new issue