|
|
@ -355,7 +355,6 @@ class TestQueue(RQTestCase):
|
|
|
|
# DeferredJobRegistry should also be empty
|
|
|
|
# DeferredJobRegistry should also be empty
|
|
|
|
self.assertEqual(registry.get_job_ids(), [])
|
|
|
|
self.assertEqual(registry.get_job_ids(), [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_enqueue_dependents_on_multiple_queues(self):
|
|
|
|
def test_enqueue_dependents_on_multiple_queues(self):
|
|
|
|
"""Enqueueing dependent jobs on multiple queues pushes jobs in the queues
|
|
|
|
"""Enqueueing dependent jobs on multiple queues pushes jobs in the queues
|
|
|
|
and removes them from DeferredJobRegistry for each different queue."""
|
|
|
|
and removes them from DeferredJobRegistry for each different queue."""
|
|
|
@ -392,8 +391,6 @@ class TestQueue(RQTestCase):
|
|
|
|
self.assertEqual(registry_1.get_job_ids(), [])
|
|
|
|
self.assertEqual(registry_1.get_job_ids(), [])
|
|
|
|
self.assertEqual(registry_2.get_job_ids(), [])
|
|
|
|
self.assertEqual(registry_2.get_job_ids(), [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_enqueue_job_with_dependency(self):
|
|
|
|
def test_enqueue_job_with_dependency(self):
|
|
|
|
"""Jobs are enqueued only when their dependencies are finished."""
|
|
|
|
"""Jobs are enqueued only when their dependencies are finished."""
|
|
|
|
# Job with unfinished dependency is not immediately enqueued
|
|
|
|
# Job with unfinished dependency is not immediately enqueued
|
|
|
|