Added better job ID tests

main
foxx 10 years ago
parent 6bb8b26114
commit 05c1d4fa4b

@ -347,4 +347,5 @@ class TestJob(RQTestCase):
ids = [1234, uuid4(), "somejobid"] ids = [1234, uuid4(), "somejobid"]
for job_id in ids: for job_id in ids:
job = queue.enqueue(say_hello, job_id=job_id) job = queue.enqueue(say_hello, job_id=job_id)
self.assertEqual(job.id, str(job_id))
job.perform() job.perform()

Loading…
Cancel
Save