no need for that save anymore

This commit is contained in:
Travis Johnson 2014-11-18 12:09:22 -05:00
parent af4b0436c1
commit b14f739dfe
1 changed files with 1 additions and 3 deletions

View File

@ -355,9 +355,7 @@ class TestQueue(RQTestCase):
def test_enqueue_job_with_dependency_by_id(self):
"""Enqueueing jobs should work as expected by id as well as job-objects."""
parent_job = Job.create(func=say_hello)
# We need to save the job for the ID to exist in redis
parent_job.save()
q = Queue()
q.enqueue_call(say_hello, depends_on=parent_job.id)
self.assertEqual(q.job_ids, [])